mirror of
https://github.com/kidoman/embd
synced 2025-07-03 03:47:33 +02:00
samples: fix to reflect changes in i2c library
This commit is contained in:
parent
cd54380887
commit
c61631dc1a
9 changed files with 13 additions and 36 deletions
|
@ -9,10 +9,8 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
bus, err := i2c.NewBus(1)
|
||||
if err != nil {
|
||||
log.Panic(err)
|
||||
}
|
||||
bus := i2c.NewBus(1)
|
||||
|
||||
baro := bmp180.New(bus)
|
||||
defer baro.Close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue