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
|
@ -10,10 +10,7 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
bus, err := i2c.NewBus(1)
|
||||
if err != nil {
|
||||
log.Panic(err)
|
||||
}
|
||||
bus := i2c.NewBus(1)
|
||||
|
||||
sensor := tmp006.New(bus, 0x40)
|
||||
if status, err := sensor.Present(); err != nil || !status {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue