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
587 stars 180 forks source link

add Sandbox Electronics NDIR CO2 sensor driver #551

Closed soypat closed 1 year ago

soypat commented 1 year ago

I've only got it to work on a Raspberry Pi 3 and 4 using the periph library. Raspberry Pi Pico has an important i2c bug I will set in issue soon.

This is the sensor: https://sandboxelectronics.com/?product=100000ppm-mh-z16-ndir-co2-sensor-with-i2cuart-5v3-3v-interface-for-arduinoraspeberry-pi

deadprogram commented 1 year ago

@soypat does this work with the PR https://github.com/tinygo-org/tinygo/pull/3770 merged?

If so, can you please add a smoke test here https://github.com/tinygo-org/drivers/blob/dev/smoketest.sh

Also add to list of drivers here https://github.com/tinygo-org/tinygo-site/blob/dev/content/docs/reference/devices/_index.md

Thanks!

soypat commented 1 year ago

See #580