Add I2C INA219 driver (#705)

INA219: add INA219 driver
This commit is contained in:
Warren Guy
2024-10-24 06:45:33 +01:00
committed by GitHub
parent f308f8fce0
commit 6d431e0726
7 changed files with 673 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
package ina219
type ErrOverflow struct{}
func (e ErrOverflow) Error() string { return "overflow" }
type ErrNotReady struct{}
func (e ErrNotReady) Error() string { return "not ready" }
type ErrConfigMismatch struct{}
func (e ErrConfigMismatch) Error() string { return "config mismatch" }