mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-20 14:39:00 +00:00
Add driver for TMP102 low-power digital temperature sensor (#141)
* tmp102: add driver and example
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package tmp102
|
||||
|
||||
const (
|
||||
// Default I2C address
|
||||
Address = 0x48
|
||||
|
||||
// Temperature register address
|
||||
RegTemperature = 0x00
|
||||
|
||||
// Configuration register address
|
||||
RegConfiguration = 0x01
|
||||
|
||||
// Low limit register address
|
||||
RegLimitLow = 0x02
|
||||
|
||||
// High limit register address
|
||||
RegLimitHigh = 0x03
|
||||
)
|
||||
Reference in New Issue
Block a user