File tree 3 files changed +7
-110
lines changed
3 files changed +7
-110
lines changed Original file line number Diff line number Diff line change 27
27
28
28
"""
29
29
30
+ import neopixel
30
31
from adafruit_portalbase .network import NetworkBase
31
- from adafruit_magtag . wifi_module import WiFi
32
+ from adafruit_portalbase . wifi_esp32s2 import WiFi
32
33
33
34
__version__ = "0.0.0-auto.0"
34
35
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MagTag.git"
@@ -53,8 +54,12 @@ def __init__(
53
54
extract_values = True ,
54
55
debug = False ,
55
56
):
57
+ if status_neopixel :
58
+ status_led = neopixel .NeoPixel (status_neopixel , 1 , brightness = 0.2 )
59
+ else :
60
+ status_led = None
56
61
super ().__init__ (
57
- WiFi (status_neopixel = status_neopixel ),
62
+ WiFi (status_led = status_led ),
58
63
extract_values = extract_values ,
59
64
debug = debug ,
60
65
)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
.. automodule :: adafruit_magtag.network
10
10
:members:
11
11
12
- .. automodule :: adafruit_magtag.wifi_module
13
- :members:
14
-
15
12
.. automodule :: adafruit_magtag.peripherals
16
13
:members:
You can’t perform that action at this time.
0 commit comments