Python script to flash the entire CircuitPython 9.1.2 factory setup on Eliobot robots
If not already installed, you will need esptool to run the script
Install with pip :
pip install esptool
Install with brew :
brew install esptool
Run once :
python3 eliobot_programmer.py
Run forever :
python3 eliobot_programmer.py --repeat
--nopull
: Do not pull ElioBot library automatically
if you have problems pulling the library, you can delete the lib
folder and run the script again
Create Python Environment :
python -m venv esptoolenv
Activate the environment :
source esptoolenv/bin/activate
Install esptool :
pip install esptool
Don't forget to reactivate the environment at each new session :
source esptoolenv/bin/activate
Then you can erase the flash :
esptool.py erase_flash
Or write a binary :
esptool.py write_flash 0x0 firmware-mass-storage.bin