Crates.io | handdrawn-watchface |
lib.rs | handdrawn-watchface |
version | 2.1.1 |
source | src |
created_at | 2020-10-21 08:08:00.391169 |
updated_at | 2020-10-23 01:27:07.164102 |
description | Hand-Drawn Watch Face for Mynewt on PineTime Smart Watch |
homepage | |
repository | https://github.com/lupyuen/handdrawn-watchface |
max_upload_size | |
id | 303775 |
size | 11,333,574 |
Preview this Watch Face in your web browser
Hand-drawn Rust Watch Face for PineTime Smart Watch with LVGL and Mynewt...
Bluetooth LE Time Sync
Time only, no date
Digits rendered as bitmaps (See the graphics assets)
Built with pinetime-watchface
framework for watch faces.
To select this watch face in the pinetime-rust-mynewt
firmware...
Add handdrawn-watchface
to pinetime-rust-mynewt/rust/app/Cargo.toml
Set WatchFaceType
in pinetime-rust-mynewt/rust/app/src/lib.rs
/// Declare the Watch Face Type
type WatchFaceType = handdrawn_watchface::HandDrawnWatchFace;
The bitmaps occupy 160 KB of ROM. To fit them into PineTime's 512 KB Flash ROM, the large title font needs to be removed from the PineTime firmware build, leaving only the small font. (No changes needed for the WebAssembly Simulator)
To remove the title font from the PineTime firmware build, edit pinetime-rust-mynewt/libs/pinetime_lvgl_mynewt/lv_conf.h
and change...
#define LV_FONT_MONTSERRAT_48 1
...
#define LV_THEME_DEFAULT_FONT_TITLE &lv_font_montserrat_48
To...
#define LV_FONT_MONTSERRAT_48 0
...
#define LV_THEME_DEFAULT_FONT_TITLE &lv_font_montserrat_24
The WebAssembly Simulator for this watch face was auto-generated by a GitHub Actions Workflow: simulator.yml
Source code for the WebAssembly Simulator is at the mynewt
branch of github.com/AppKaki/lvgl-wasm
Refer to the article...
"Create Your Own PineTime Watch Face in Rust... And Publish on crates.io"