Skip to content

Commit 622c02f

Browse files
committed
Switch from nativeio to digitalio because nativeio was split.
1 parent 17dd9a6 commit 622c02f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

simpleio.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
The `simpleio` module contains classes to provide simple access to IO.
3131
"""
3232

33-
import nativeio
33+
import digitalio
3434
import math
3535
from neopixel_write import neopixel_write
3636

@@ -39,7 +39,7 @@ class DigitalOut:
3939
Simple digital output that is valid until soft reset.
4040
"""
4141
def __init__(self, pin):
42-
self.io = nativeio.DigitalInOut(pin)
42+
self.io = digitalio.DigitalInOut(pin)
4343
self.io.switch_to_output()
4444

4545
@property
@@ -56,7 +56,7 @@ class DigitalIn:
5656
Simple digital input that is valid until soft reset.
5757
"""
5858
def __init__(self, pin):
59-
self.io = nativeio.DigitalInOut(pin)
59+
self.io = digitalio.DigitalInOut(pin)
6060
self.io.switch_to_input()
6161

6262
@property
@@ -90,7 +90,7 @@ class NeoPixel:
9090
pixels[i] = RED
9191
"""
9292
def __init__(self, pin, n, rgbw=False):
93-
self.pin = nativeio.DigitalInOut(pin)
93+
self.pin = digitalio.DigitalInOut(pin)
9494
self.pin.switch_to_output()
9595
self.bpp = 3
9696
if rgbw:

0 commit comments

Comments
 (0)