monorepo related to development/experimentation on the hack and roll nfc badge reader~
- bus card info reader
- maimai card info reader..?! it has wifi after all... (but depends on their api hhh)
- pure c graphics manipulation on the screen per-pixel? see: https://youtu.be/xNX9H_ZkfNE
- hello world test
- counter programme (impl. original code for UI)
- nfc reader reimplementation
- image UI
- spotify websocket thing
esp32c3-dump
|- fs/ # copy of device's root dir
|- full_flash.bin # complete copy of flash
uv tool install mpremoteto enter REPL on the serial device:
mpremote repl- then
CTRL + Cto enter device's REPL prompt. (ends running programme and exits into REPL) CTRL + Dto re-run previously ended programme (by soft-rebooting micropython interpreter)CTRL + Xto exit prompt
screen /dev/ttyACM0- then
CTRL + Cto enter REPL - use
CTRL + A, then K, then Yto exit screen
using mpremote, use:
mpremote connect /dev/ttyACM0 fs cp :<file_to_dump> ./<location_in_cwd>in this specific micropython environment, because the environment is either outdated or too minimal, the ls and cp -r commands don't work on mpremote as they rely on ilistdir() which isn't implemented.
therefore, use:
mpremote run copytree.pythen manually copy the output files one-by-one into the correct directories using the earlier cp command (yeah is scuffed)
put esp into bootloader mode:
- hold BOOT
- press and release RESET
- release BOOT
install esptool:
uv tool install esptoolcheck connection:
esptool --chip esp32c3 chip_idfind flash size (for dumping):
esptool flash_iddump entire flash:
esptool.py read_flash 0x000000 0x400000 full_flash.bin