Important
This script only supports ZSWatch v4 and above!
This project renders pre-built binary watchfaces on ESP32 using LVGL. A Kotlin script transforms the binary watchfaces into LVGL code, which is then compiled for the ZSWatch.
It was forked from esp32-lvgl-watchface.
Watchfaces can be obtained from watch-face-wearfit or Chronos Dials. Since the ZSWatch uses a 240x240 screen, watchfaces of the same resolution are recommended.
- Install the Java JDK by running
sudo apt-get install openjdk-11-jdk
- Install Kotlin by using
sudo apt-get install kotlin
- Run
export ZSWATCH_ROOT=<ZSWatch-Root>
and replaceZSWatch-Root
with the root directory of your ZSWatch project
- Run
generate.sh
and pass in the URL of the target watchface (i. e.https://github.com/fbiego/watch-face-wearfit/raw/main/dials/HW21/107_2_dial.bin
)
generate.sh https://github.com/fbiego/watch-face-wearfit/raw/main/dials/HW21/107_2_dial.bin
- If the script is executed without an error you can compile the ZSWatch firmware
- Enjoy the new watchface