File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class I2CDevice:
25
25
Represents a single I2C device and manages locking the bus and the device
26
26
address.
27
27
28
- :param ~nativeio .I2C i2c: The I2C bus the device is on
28
+ :param ~busio .I2C i2c: The I2C bus the device is on
29
29
:param int device_address: The 7 bit device address
30
30
31
31
.. note:: This class is **NOT** built into CircuitPython. See
@@ -35,11 +35,11 @@ class I2CDevice:
35
35
36
36
.. code-block:: python
37
37
38
- import nativeio
38
+ import busio
39
39
from board import *
40
40
from adafruit_bus_device.i2c_device import I2CDevice
41
41
42
- with nativeio .I2C(SCL, SDA) as i2c:
42
+ with busio .I2C(SCL, SDA) as i2c:
43
43
device = I2CDevice(i2c, 0x70)
44
44
bytes_read = bytearray(4)
45
45
with device:
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class SPIDevice:
25
25
Represents a single SPI device and manages locking the bus and the device
26
26
address.
27
27
28
- :param ~nativeio .SPI spi: The SPI bus the device is on
28
+ :param ~busio .SPI spi: The SPI bus the device is on
29
29
:param ~microcontroller.Pin chip_select: The chip select pin
30
30
:param int extra_clocks: The minimum number of clock cycles to cycle the bus after CS is high. (Used for SD cards.)
31
31
@@ -36,11 +36,11 @@ class SPIDevice:
36
36
37
37
.. code-block:: python
38
38
39
- import nativeio
39
+ import busio
40
40
from board import *
41
41
from adafruit_bus_device.spi_device import I2CDevice
42
42
43
- with nativeio .SPI(SCK, MOSI, MISO) as spi_bus:
43
+ with busio .SPI(SCK, MOSI, MISO) as spi_bus:
44
44
device = SPIDevice(spi_bus, D10)
45
45
bytes_read = bytearray(4)
46
46
with device as spi:
You can’t perform that action at this time.
0 commit comments