File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Next, define where the bit is located in the device's memory map:
42
42
Lastly, we need to add an ``i2c_device `` member of type :class: `~adafruit_bus_device.i2c_device.I2CDevice `
43
43
that manages sharing the I2C bus for us. Make sure the name is exact, otherwise
44
44
the registers will not be able to find it. Also, make sure that the i2c device
45
- implements the `nativeio .I2C ` interface.
45
+ implements the `busio .I2C ` interface.
46
46
47
47
.. code-block :: python
48
48
@@ -53,10 +53,10 @@ Thats it! Now we have a class we can use to talk to those registers:
53
53
54
54
.. code-block :: python
55
55
56
- import nativeio
56
+ import busio
57
57
from board import *
58
58
59
- with nativeio .I2C(SCL , SDA ) as i2c:
59
+ with busio .I2C(SCL , SDA ) as i2c:
60
60
device = HelloWorldDevice(i2c)
61
61
device.hello = True
62
62
device.world = True
You can’t perform that action at this time.
0 commit comments