File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class I2CDevice:
2525 Represents a single I2C device and manages locking the bus and the device
2626 address.
2727
28- :param ~nativeio .I2C i2c: The I2C bus the device is on
28+ :param ~busio .I2C i2c: The I2C bus the device is on
2929 :param int device_address: The 7 bit device address
3030
3131 .. note:: This class is **NOT** built into CircuitPython. See
@@ -35,11 +35,11 @@ class I2CDevice:
3535
3636 .. code-block:: python
3737
38- import nativeio
38+ import busio
3939 from board import *
4040 from adafruit_bus_device.i2c_device import I2CDevice
4141
42- with nativeio .I2C(SCL, SDA) as i2c:
42+ with busio .I2C(SCL, SDA) as i2c:
4343 device = I2CDevice(i2c, 0x70)
4444 bytes_read = bytearray(4)
4545 with device:
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class SPIDevice:
2525 Represents a single SPI device and manages locking the bus and the device
2626 address.
2727
28- :param ~nativeio .SPI spi: The SPI bus the device is on
28+ :param ~busio .SPI spi: The SPI bus the device is on
2929 :param ~microcontroller.Pin chip_select: The chip select pin
3030 :param int extra_clocks: The minimum number of clock cycles to cycle the bus after CS is high. (Used for SD cards.)
3131
@@ -36,11 +36,11 @@ class SPIDevice:
3636
3737 .. code-block:: python
3838
39- import nativeio
39+ import busio
4040 from board import *
4141 from adafruit_bus_device.spi_device import I2CDevice
4242
43- with nativeio .SPI(SCK, MOSI, MISO) as spi_bus:
43+ with busio .SPI(SCK, MOSI, MISO) as spi_bus:
4444 device = SPIDevice(spi_bus, D10)
4545 bytes_read = bytearray(4)
4646 with device as spi:
You can’t perform that action at this time.
0 commit comments