update example

This commit is contained in:
John Pauley 2017-05-03 18:23:27 -04:00
parent c917806479
commit d3629908d4
1 changed files with 3 additions and 3 deletions

View File

@ -27,19 +27,19 @@ func main() {
if err != nil {
}
log.Printf("Ch 1 Shunt Voltage: %f", bv)
log.Printf("Ch 1 Shunt Voltage: %f", sv)
ma, err := ina.GetCurrent(i2c.INA3221Channel1)
if err != nil {
}
log.Printf("Ch 1 Current: %f", bv)
log.Printf("Ch 1 Current: %f", ma)
lv, err := ina.GetLoadVoltage(i2c.INA3221Channel1)
if err != nil {
}
log.Printf("Ch 1 Load Voltage: %f", bv)
log.Printf("Ch 1 Load Voltage: %f", lv)
})
}