File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 30
30
The `simpleio` module contains classes to provide simple access to IO.
31
31
"""
32
32
33
- import nativeio
33
+ import digitalio
34
34
import math
35
35
from neopixel_write import neopixel_write
36
36
@@ -39,7 +39,7 @@ class DigitalOut:
39
39
Simple digital output that is valid until soft reset.
40
40
"""
41
41
def __init__ (self , pin ):
42
- self .io = nativeio .DigitalInOut (pin )
42
+ self .io = digitalio .DigitalInOut (pin )
43
43
self .io .switch_to_output ()
44
44
45
45
@property
@@ -56,7 +56,7 @@ class DigitalIn:
56
56
Simple digital input that is valid until soft reset.
57
57
"""
58
58
def __init__ (self , pin ):
59
- self .io = nativeio .DigitalInOut (pin )
59
+ self .io = digitalio .DigitalInOut (pin )
60
60
self .io .switch_to_input ()
61
61
62
62
@property
@@ -90,7 +90,7 @@ class NeoPixel:
90
90
pixels[i] = RED
91
91
"""
92
92
def __init__ (self , pin , n , rgbw = False ):
93
- self .pin = nativeio .DigitalInOut (pin )
93
+ self .pin = digitalio .DigitalInOut (pin )
94
94
self .pin .switch_to_output ()
95
95
self .bpp = 3
96
96
if rgbw :
You can’t perform that action at this time.
0 commit comments