mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-11 10:23:44 +00:00
6d431e0726
INA219: add INA219 driver
14 lines
266 B
Go
14 lines
266 B
Go
package ina219
|
|
|
|
// The default I2C address for this device.
|
|
const Address = 0x40
|
|
|
|
const (
|
|
RegConfig uint8 = 0x0
|
|
RegShuntVoltage uint8 = 0x1
|
|
RegBusVoltage uint8 = 0x2
|
|
RegPower uint8 = 0x3
|
|
RegCurrent uint8 = 0x4
|
|
RegCalibration uint8 = 0x5
|
|
)
|