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
622 stars 196 forks source link

Add support for LSM303DLHC e-Compass #718

Open BryanSouza91 opened 4 weeks ago

BryanSouza91 commented 4 weeks ago

I have an Adafruit breakout board for the LSM303DLHC e-Compass. Is anyone working on this? I didn't find an open issue.

I also see that the LSM303AGR is supported and that will be the basis of adding the LSM303DLHC.

deadprogram commented 4 weeks ago

Sounds good, thank you!

BryanSouza91 commented 4 weeks ago

I ran the tests but received an error on the final build test since my version of Go is 1.23 and the test wants versions 1.18 through 1.22, is this an issue? I also have not actually tested the code with the device, should I try that prior to the pull request?(probably yes)

BryanSouza91 commented 3 weeks ago

I updated tinygo to the latest version and the previous error is fixed however there seems to be another error with the smoketest. I have not been able to build a small test program with the new lsm303dlhc code because the code is not part of the official repo. I will submit the pull request and go from there.

This can be closed if this issue is complete at this point.