An open API service indexing awesome lists of open source software.

https://github.com/dysbulic/m5dial-decimal-clock

A Rust-based clock to run on the M5 Dial.
https://github.com/dysbulic/m5dial-decimal-clock

Last synced: about 2 months ago
JSON representation

A Rust-based clock to run on the M5 Dial.

Awesome Lists containing this project

README

        

# Rust Decimal Clock for the [M5 Dial](https://shop.m5stack.com/products/m5stack-dial-esp32-s3-smart-rotary-knob-w-1-28-round-touch-screen)

This is my first foray into Rust & I'm attempting to write a clock for the [M5 Dial](https://shop.m5stack.com/products/m5stack-dial-esp32-s3-smart-rotary-knob-w-1-28-round-touch-screen) where the day is divided into ten hours of 100 minutes and 100 seconds. The time is, in essence, the percentage of the day that has passed.

I've not been able to find any examples of controlling a M5 Dial using Rust, and, as aforementioned, this is my first Rust program, so I make no claims as to the code quality. 😼

## Running

1. Install Rust using [rustup](https://rustup.rs).
2. `cargo build`
3. `cargo run` # with the M5 Dial connected via USB

## Changelog

* 2024⁄6⁄18: `v0.1.0`
* Generated an app using the [esp-idf template](https://github.com/esp-rs/esp-idf-template/).
* Copied sample from [IniterWorker/esp32-s3-touch-lcd-1-28](https://github.com/IniterWorker/esp32-s3-touch-lcd-1-28/).
* Pulled appropriate pin information from [M5 Dial User Demos](https://github.com/m5stack/M5Dial-UserDemo/blob/main/main/hal/display/hal_display.hpp#L20-L27).
* Randomized colors on each draw.