Closed samaclea closed 7 months ago
Updater code works well when pulling from Github, and shouldn't be too hard to refactor to pull from a server we control if we need to.
As for getting our code on the badge with the initial firmware install so far we need 7 files:
boot.py
secrets.py
code.py
lib/updater.py
lib/adafruit_st7735r.mpy
lib/pdepd.py
lib/flavortext.py
Test script lives in src/test_badge.py
for now, but I will probably move it to tools
later because I don't think we need to ship it with final badge code.
Script tests:
Script doesn't test:
Swapped to firmware version 8.2.10 while debugging firmware, not sure if it had any affect but it's probably good form to use the stable branch and not beta.
I am now able to get files included on initial firmware write, I do this by modifying circuitpython/supervisor/shared/filesystem.c
with the byte contents of files in firmware/init_files/
. Doing this manually is laborious and annoying so I created the tools/py2fs.py
script to do this for you. Instructions are here.
Ooops still need to get info from @pmcknig1 on badge network stuff.
Firmware hex was delivered successfully to the fab.
code.py
here: https://github.com/adafruit/circuitpython/blob/5f762811a67ba283ef76de6b01b838f6ab4192d2/supervisor/shared/filesystem.c#L157