Seeed-Studio / Seeed_Arduino_LSM6DS3

Grove sensor 6 Axis Accelerometer&Gyroscope using LSM6DS3
Other
53 stars 23 forks source link

Lib for Seeed Xiao Sens, IC2 wire1 define not OK #10

Closed fchaxel closed 1 year ago

fchaxel commented 1 year ago

Hi,

Problem with Arduino IDE 2.0.3 and the lastest XIAO package.

Line 35, file LSM6DS3.cpp :

ifdef TARGET_SEEED_XIAO_NRF52840_SENSE

should be replaced by

ifdef ARDUINO_Seeed_XIAO_nRF52840_Sense

Without that the first I2C USART(external) is used ... without access to the sensor.

Bye

Maxwelltoo commented 1 year ago

Yes, it is a compatibility issue, the macro is defined in the Seeed nRF52 mbed-enabled Boards package and not in Seeed nRF52 Boards. I have added the definition of this macro, please wait for the update or try using the Seeed nRF52 mbed-enabled Boards package first.