Skip to content

Make use of the new PortalBase WiFi modules #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2021
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_pyportal/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"""

import gc
import neopixel
from adafruit_portalbase.wifi_coprocessor import WiFi

# pylint: disable=unused-import
from adafruit_portalbase.network import (
Expand All @@ -33,7 +35,6 @@
)

# pylint: enable=unused-import
from adafruit_pyportal.wifi import WiFi

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PyPortal.git"
Expand Down Expand Up @@ -87,7 +88,11 @@ def __init__(
image_dim_json_path=None,
secrets_data=None,
):
wifi = WiFi(status_neopixel=status_neopixel, esp=esp, external_spi=external_spi)
if status_neopixel:
status_led = neopixel.NeoPixel(status_neopixel, 1, brightness=0.2)
else:
status_led = None
wifi = WiFi(status_led=status_led, esp=esp, external_spi=external_spi)

super().__init__(
wifi,
Expand Down
115 changes: 0 additions & 115 deletions adafruit_pyportal/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 @@ -15,6 +15,3 @@

.. automodule:: adafruit_pyportal.peripherals
:members:

.. automodule:: adafruit_pyportal.wifi
:members: