File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,11 @@ def __init__(
79
79
if - 1 in (red_index , green_index , blue_index ):
80
80
raise ValueError ("color_order should contain R, G, and B" )
81
81
82
- if "Matrix Portal M4" in os .uname ().machine :
83
- # MatrixPortal M4 Board
82
+ if (
83
+ "Adafruit Matrix Portal" in os .uname ().machine
84
+ or "Adafruit MatrixPortal" in os .uname ().machine
85
+ ):
86
+ # MatrixPortal Board
84
87
addr_pins = [board .MTX_ADDRA , board .MTX_ADDRB , board .MTX_ADDRC ]
85
88
if panel_height > 16 :
86
89
addr_pins .append (board .MTX_ADDRD )
Original file line number Diff line number Diff line change 26
26
27
27
"""
28
28
29
+ import os
29
30
import gc
30
31
import neopixel
31
32
from adafruit_portalbase .network import NetworkBase
32
- from adafruit_portalbase .wifi_coprocessor import WiFi
33
+
34
+ if os .uname ().sysname == "samd51" :
35
+ from adafruit_portalbase .wifi_coprocessor import WiFi
36
+ else :
37
+ from adafruit_portalbase .wifi_esp32s2 import WiFi
33
38
34
39
__version__ = "0.0.0+auto.0"
35
40
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MatrixPortal.git"
You can’t perform that action at this time.
0 commit comments