Skip to content

Commit 25bc43f

Browse files
authored
Merge pull request #76 from makermelissa/master
Make use of the new PortalBase WiFi modules
2 parents 0d0937d + 1f24944 commit 25bc43f

File tree

3 files changed

+9
-122
lines changed

3 files changed

+9
-122
lines changed

adafruit_matrixportal/network.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
"""
2828

2929
import gc
30+
import neopixel
3031
from adafruit_portalbase.network import NetworkBase
31-
from adafruit_matrixportal.wifi import WiFi
32+
from adafruit_portalbase.wifi_coprocessor import WiFi
3233

3334
__version__ = "0.0.0-auto.0"
3435
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MatrixPortal.git"
@@ -55,6 +56,13 @@ def __init__(self, **kwargs):
5556
extract_values = kwargs.pop("extract_values")
5657
if "debug" in kwargs:
5758
debug = kwargs.pop("debug")
59+
60+
if "status_neopixel" in kwargs:
61+
status_neopixel = kwargs.pop("status_neopixel")
62+
status_led = neopixel.NeoPixel(status_neopixel, 1, brightness=0.2)
63+
else:
64+
status_led = None
65+
kwargs["status_led"] = status_led
5866
wifi = WiFi(**kwargs)
5967

6068
super().__init__(

adafruit_matrixportal/wifi.py

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

docs/api.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@
1111

1212
.. automodule:: adafruit_matrixportal.network
1313
:members:
14-
15-
.. automodule:: adafruit_matrixportal.wifi
16-
:members:

0 commit comments

Comments
 (0)