As I need to edit the main lib to do what I want/need to do. I had to fork the main repo to create my own version of the Watchy.
The actual face is the Watchy7SEG
from the main repo.
It's this a work in progress and be considere as experimental !
All the features details are available in features file.
First you need to edit the parameters file with your informations and rename it to parameters.h
.
In order to build and upload the Watchy from cmd line :
export SKETCH="electrowatch.ino"
# v2
export FQBN="esp32:esp32:watchy:Revision=v20,PartitionScheme=huge_app,UploadSpeed=921600,DebugLevel=none"
export PORT="/dev/cu.wchusbserial56230332171"
# v3
export FQBN="esp32:esp32:esp32s3:FlashSize=8M,PartitionScheme=default_8MB,UploadSpeed=921600,DebugLevel=none,EraseFlash=none"
export PORT="/dev/cu.usbmodem14101"
You may need to replace the --port
with your own.
arduino-cli core update-index --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
arduino-cli core install esp32:[email protected]
arduino-cli lib install [email protected]
arduino-cli compile ${SKETCH} --fqbn ${FQBN} --log-level error
arduino-cli upload ${SKETCH} --port ${PORT} --fqbn ${FQBN}
arduino-cli compile --upload ${SKETCH} --port ${PORT} --fqbn ${FQBN}
screen ${PORT} 115200
to exit ctrl a + k
Install esptool.py
esptool.py --port ${PORT} erase_flash