Skip to content

Commit 36b4921

Browse files
authored
Merge pull request #60 from makermelissa/main
Make use of the new PortalBase WiFi modules
2 parents f401724 + d294659 commit 36b4921

File tree

3 files changed

+7
-110
lines changed

3 files changed

+7
-110
lines changed

adafruit_magtag/network.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
2828
"""
2929

30+
import neopixel
3031
from adafruit_portalbase.network import NetworkBase
31-
from adafruit_magtag.wifi_module import WiFi
32+
from adafruit_portalbase.wifi_esp32s2 import WiFi
3233

3334
__version__ = "0.0.0-auto.0"
3435
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MagTag.git"
@@ -53,8 +54,12 @@ def __init__(
5354
extract_values=True,
5455
debug=False,
5556
):
57+
if status_neopixel:
58+
status_led = neopixel.NeoPixel(status_neopixel, 1, brightness=0.2)
59+
else:
60+
status_led = None
5661
super().__init__(
57-
WiFi(status_neopixel=status_neopixel),
62+
WiFi(status_led=status_led),
5863
extract_values=extract_values,
5964
debug=debug,
6065
)

adafruit_magtag/wifi_module.py

Lines changed: 0 additions & 105 deletions
This file was deleted.

docs/api.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,5 @@
99
.. automodule:: adafruit_magtag.network
1010
:members:
1111

12-
.. automodule:: adafruit_magtag.wifi_module
13-
:members:
14-
1512
.. automodule:: adafruit_magtag.peripherals
1613
:members:

0 commit comments

Comments
 (0)