Skip to content

Latest commit

 

History

History
79 lines (50 loc) · 1.89 KB

README.md

File metadata and controls

79 lines (50 loc) · 1.89 KB

Watchy v2 - WIP

cpp-linter

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.

How to

Set settings

First you need to edit the parameters file with your informations and rename it to parameters.h.

Compile & Upload

In order to build and upload the Watchy from cmd line :

Setup some vars

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.

Deps

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]

Compile

arduino-cli compile ${SKETCH} --fqbn ${FQBN} --log-level error

Upload

arduino-cli upload ${SKETCH} --port ${PORT} --fqbn ${FQBN}

Both

arduino-cli compile --upload ${SKETCH} --port ${PORT} --fqbn ${FQBN}

Debug

screen ${PORT} 115200

to exit ctrl a + k

Reset

Install esptool.py

esptool.py --port ${PORT} erase_flash