Skip to content

Commit 9c980a4

Browse files
committed
Switch from nativeio to busio because nativeio was split.
1 parent 62513f5 commit 9c980a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Next, define where the bit is located in the device's memory map:
4242
Lastly, we need to add an ``i2c_device`` member of type :class:`~adafruit_bus_device.i2c_device.I2CDevice`
4343
that manages sharing the I2C bus for us. Make sure the name is exact, otherwise
4444
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.
4646

4747
.. code-block:: python
4848
@@ -53,10 +53,10 @@ Thats it! Now we have a class we can use to talk to those registers:
5353

5454
.. code-block:: python
5555
56-
import nativeio
56+
import busio
5757
from board import *
5858
59-
with nativeio.I2C(SCL, SDA) as i2c:
59+
with busio.I2C(SCL, SDA) as i2c:
6060
device = HelloWorldDevice(i2c)
6161
device.hello = True
6262
device.world = True

0 commit comments

Comments
 (0)