tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
604 stars 188 forks source link

lsm6ds3tr: initial implementation #410

Closed ysoldak closed 2 years ago

ysoldak commented 2 years ago

This is an initial implementation of lsm6ds3tr 6-axis IMU driver.

iNEMO 6DoF inertial measurement unit (IMU), for entry level / mid-tier smart phones and Portable PC platforms

lsm6ds3tr is a different version of already supported lsm6ds3. According to datasheet, this IMU does have differences in registers, etc to justify a separate driver.

XIAO BLE Sense boards (tinygo target "xiao_ble") have this IMU installed.

sago35 commented 2 years ago

@ysoldak I ran the EXAMPLE with XIAO BLE Sense. It appears to be working correctly.

I have not checked the source code yet. Please let me know when the changes are fixed.

ysoldak commented 2 years ago

@sago35 What do you mean? If PR is ready for review? Yes, it is, please, review the code. I use this driver in my head tracker project that uses both Acc and Gyro, seem to be working correctly.