Skip to content

Commit eecadea

Browse files
committed
micropython fixes and rgb matrix bug fix
1 parent 3fe5950 commit eecadea

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ Thanks to the great work of **@bill88t**, starting with CircuitPython version 8.
293293

294294
When CircuitPython boots on a microcontroller the pystack size can be set by the **CIRCUITPY_PYSTACK_SIZE** value in the settings.toml file. PyDOS comes with this value set to 4000. PyDOS will derive a maximum wildcard length based on this value that should be adequate in most cases, however if you find yourself using particuarly long file names you can increase this parameter value as needed. As you increase the pystack size the memory available for PyDOS to run will decrease slightly.
295295

296-
*By the way, if you like PyDOS you'll probably also enjoy ljinux from https://github.com/bill88t/ljinux.*
296+
*By the way, if you like PyDOS you'll probably also enjoy Beryllium OS from https://github.com/beryllium-org/OS
297297

298298
**CircuitPython install**
299299

boot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
'Sparkfun SAMD51 Thing Plus with SAMD51J20A',
6363
'XIAO nRF52840 Sense with NRF52840']
6464

65-
if implementation._machine in spcBoards:
65+
if '_machine' in dir(implementation) and \
66+
implementation._machine in spcBoards:
67+
6668
boardNo = spcBoards.index(implementation._machine)
6769
else:
6870
boardNo = -1

matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
bit_depth = 4
5555
chain_across = 2
5656
tile_down = 2
57-
elif passedIn == '64x4w'
57+
elif passedIn == '64x4w':
5858
base_width = 64
5959
base_height = 64
6060
bit_depth = 4

mpython/boot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
'Sparkfun SAMD51 Thing Plus with SAMD51J20A',
55
'XIAO nRF52840 Sense with NRF52840']
66

7-
if implementation._machine in spcBoards:
7+
if '_machine' in dir(implementation) and \
8+
implementation._machine in spcBoards:
9+
810
boardNo = spcBoards.index(implementation._machine)
911
else:
1012
import os

setup.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ rem if not errorlevel 0 echo copy /mpython/lib/optional/ws2812.py /lib/
5353
rem if not errorlevel 0 copy /mpython/lib/optional/ws2812.py /lib/
5454
if not errorlevel 0 copy /mpython/lib/optional/neopixel.* /lib/
5555
pexec envVars["_uname"] = implementation._machine
56+
if errorlevel 0 goto uname_set
57+
pexec import os
58+
pexec envVars["_uname"] = os.uname().machine
59+
:uname_set
5660
if not "%_uname%" == "Sparkfun SAMD51 Thing Plus with SAMD51J20A" goto skip_SAMD51
5761
if not exist /lib mkdir /lib
5862
copy /mpython/extFlash/lib/* /lib/

0 commit comments

Comments
 (0)