Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion adafruit_matrixportal/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
"""

import gc
import neopixel
from adafruit_portalbase.network import NetworkBase
from adafruit_matrixportal.wifi import WiFi
from adafruit_portalbase.wifi_coprocessor import WiFi

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MatrixPortal.git"
Expand All @@ -55,6 +56,13 @@ def __init__(self, **kwargs):
extract_values = kwargs.pop("extract_values")
if "debug" in kwargs:
debug = kwargs.pop("debug")

if "status_neopixel" in kwargs:
status_neopixel = kwargs.pop("status_neopixel")
status_led = neopixel.NeoPixel(status_neopixel, 1, brightness=0.2)
else:
status_led = None
kwargs["status_led"] = status_led
wifi = WiFi(**kwargs)

super().__init__(
Expand Down
118 changes: 0 additions & 118 deletions adafruit_matrixportal/wifi.py

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@

.. automodule:: adafruit_matrixportal.network
:members:

.. automodule:: adafruit_matrixportal.wifi
:members: