File tree Expand file tree Collapse file tree 3 files changed +7
-120
lines changed Expand file tree Collapse file tree 3 files changed +7
-120
lines changed Original file line number Diff line number Diff line change 24
24
"""
25
25
26
26
import gc
27
+ import neopixel
28
+ from adafruit_portalbase .wifi_coprocessor import WiFi
27
29
28
30
# pylint: disable=unused-import
29
31
from adafruit_portalbase .network import (
33
35
)
34
36
35
37
# pylint: enable=unused-import
36
- from adafruit_pyportal .wifi import WiFi
37
38
38
39
__version__ = "0.0.0-auto.0"
39
40
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PyPortal.git"
@@ -87,7 +88,11 @@ def __init__(
87
88
image_dim_json_path = None ,
88
89
secrets_data = None ,
89
90
):
90
- wifi = WiFi (status_neopixel = status_neopixel , esp = esp , external_spi = external_spi )
91
+ if status_neopixel :
92
+ status_led = neopixel .NeoPixel (status_neopixel , 1 , brightness = 0.2 )
93
+ else :
94
+ status_led = None
95
+ wifi = WiFi (status_led = status_led , esp = esp , external_spi = external_spi )
91
96
92
97
super ().__init__ (
93
98
wifi ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 15
15
16
16
.. automodule :: adafruit_pyportal.peripherals
17
17
:members:
18
-
19
- .. automodule :: adafruit_pyportal.wifi
20
- :members:
You can’t perform that action at this time.
0 commit comments