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
9 changes: 7 additions & 2 deletions adafruit_magtag/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@

"""

import neopixel
from adafruit_portalbase.network import NetworkBase
from adafruit_magtag.wifi_module import WiFi
from adafruit_portalbase.wifi_esp32s2 import WiFi

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MagTag.git"
Expand All @@ -53,8 +54,12 @@ def __init__(
extract_values=True,
debug=False,
):
if status_neopixel:
status_led = neopixel.NeoPixel(status_neopixel, 1, brightness=0.2)
else:
status_led = None
super().__init__(
WiFi(status_neopixel=status_neopixel),
WiFi(status_led=status_led),
extract_values=extract_values,
debug=debug,
)
Expand Down
105 changes: 0 additions & 105 deletions adafruit_magtag/wifi_module.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 @@ -9,8 +9,5 @@
.. automodule:: adafruit_magtag.network
:members:

.. automodule:: adafruit_magtag.wifi_module
:members:

.. automodule:: adafruit_magtag.peripherals
:members: