all: do not take the pointer of an I2C object

This is in preparation of PR
https://github.com/tinygo-org/tinygo/pull/1693, which makes machine.I2C0
and similar objects of pointer type, so they can be freely passed
around.
This commit is contained in:
Ayke van Laethem
2021-03-06 00:12:17 +01:00
committed by deadprogram
parent 84408279de
commit 0b6bfda8cf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import (
)
var (
i2c = &machine.I2C0
i2c = machine.I2C0
sensor = adt7410.New(i2c)
)