toit
toit copied to clipboard
Driver for MCP9808
The Adafruit MCP9808 is a high accuracy I2C-based temperature sensor breakout board. There is no Toit driver package available for it yet. If you have an MCP9808 sensor, we could use your help to build Toit support for it.
Porting existing drivers to Toit is a great place to start contributing to the Toit community. Here is the source code of another driver package for inspiration and here is brief explanation on how to start writing an I2C driver in Toit.
I have something up and running, including temperature alerts and interrupts: https://github.com/nilwes/MCP9808 TODO: Allow for floating point temperature thresholds.