-
Notifications
You must be signed in to change notification settings - Fork 86
πΎ Flashing the Firmware
Once your Clockwise hardware is assembled, it's time to upload the firmware and bring your clock to life!
There are 3 supported methods for flashing Clockwise:
1οΈβ£ Web flashing (recommended for beginners)
2οΈβ£ PlatformIO (for developers)
3οΈβ£ ESP-IDF (for advanced users)
This is the easiest and fastest way to flash Clockwise β no coding required!
- Go to https://clockwise.page/ and select the desired clockface
- Connect the ESP32 device on your computer's USB port
- Click on the Flash button
- A dialog will appear, select the correct USB port and click in Connect (screenshot)
- Select the INSTALL and INSTALL again (screenshot)
- Wait while the flash tool uploads the firmware and finish (screenshot)
- From the version 1.1.0, click in NEXT on step 6, Improv will start looking for available WiFi networks to connect
- Select your local network (must be a 2.4GHz) and enter with your password (screenshot)
- If connection was successful, a message with button VISIT DEVICE will pop up and you can visit the Clockwise setting page (screenshot)
After flashing your clockface, you will have a step to configure the WiFi. But in case you change your access point or password, you can set up just the WiFi connecting the Clockwise on USB, opening https://clockwise.page and clicking in Flash button, a window will pop up with a few options where you can re-configure your WiFi network (screenshot) as well as open the Settings page to change preferences using button VISIT DEVICE. Remember: it is important to use a 2.4GHz WiFi, it will not work on 5GHz.
Requirements:
- USB cable with data support (some cheap cables only provide power)
- Google Chrome or Edge browser (desktop)
- A 2.4 GHz WiFi network (Clockwise does not support 5 GHz WiFi)
Clockwise uses PlatformIO as IDE, so the configuration is already done if you use the same. The Clockwise structure consists mainly of three folders
- clockfaces: contains the collection of available clockfaces. This folder is not included when compiling
- lib: contains the basic code for Clockwise to work and in addition a symbolic link to the current clockface
- src: contains the entry point for the clock code
.
βββ clockfaces
β βββ cw-cf-0x01
β βββ cw-cf-0x02
β βββ cw-cf-0x03
βββ lib
β βββ cw-commons
β βββ cw-gfx-engine
β βββ timeinwords -> ../clockfaces/cw-cf-0x02/
βββ src
βββ main.cpp
Clone this repository and then run the following command to clone the clockface submodules
.../clockwise$ git submodule update --init firmware/clockfaces
To create the symbolic link run the following command inside lib/ folder:
.../clockwise/firmware/lib$ ln -s ../clockfaces/cw-cf-0x02/ timeinwords
Or, if you prefer, you can get the same result by copying the desired clockface folder into lib/
The same way as web flashing, when connecting for the first time you will have to configure the wifi, follow the instructions in Configuring WiFi section above.
- Install PlatformIO
- Clone the Clockwise repository following the instructions above
You can use the official Esspressif IoT Development Framekwork (aka esp-idf) to build and upload this project to an ESP32 device, including the ESP32-Trinity board.
Follow the Step By Step installation instructions.
Follow the instructions here.
git clone --recurse-submodules https://github.com/jnthas/clockwise.git
idf.py reconfigure
-
idf.py menuconfig
(selectClockwise Configuration
and choose the clockface) idf.py flash
idf.py monitor