i2c: change example for bmp180 to match current method signature

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-04-04 16:00:01 +02:00
parent fa7ce5c646
commit 0887fefc70
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ func main() {
gobot.Every(1*time.Second, func() {
t, _ := bmp180.Temperature()
fmt.Println("Temperature", t)
p, _ := bmp180.Pressure()
fmt.Println("Pressure", p)
})
}