Open Kongduino opened 1 year ago
In the Arduino BSP for nRF52 – which Xiao BLE uses – err_t is defined as uint32_t, whereas in this library it is defined as:
err_t
uint32_t
typedef enum { NO_ERROR = 0, ERROR_PARAM = -1, ERROR_COMM = -2, ERROR_OTHERS = -128, } err_t;
As a quickie, I changed the name of the enum, and all references to it, to err_tp. The example now compiles on Xiao BLE. I also had to add a #define for the I2C pins:
err_tp
#define SDAPIN PIN_WIRE_SDA #define SCLPIN PIN_WIRE_SCL
I have the same issue with xiao esp32 s3
In the Arduino BSP for nRF52 – which Xiao BLE uses –
err_t
is defined asuint32_t
, whereas in this library it is defined as:As a quickie, I changed the name of the enum, and all references to it, to
err_tp
. The example now compiles on Xiao BLE. I also had to add a #define for the I2C pins: