m5dial-bsp

Crates.iom5dial-bsp
lib.rsm5dial-bsp
version
sourcesrc
created_at2025-02-11 22:22:55.308945+00
updated_at2025-02-25 20:22:13.496494+00
descriptionBoard support package for the M5 Dial.
homepagehttps://github.com/AntoineZen/m5dial-bsp
repositoryhttps://github.com/AntoineZen/m5dial-bsp
max_upload_size
id1552046
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
AntoineZen (AntoineZen)

documentation

https://antoinezen.github.io/m5dial-bsp

README

M5 Dial Board Support Package (BSP)

This crates is a Board support package for the M5 Dial.

Feature list/roadmap:

  • Screen driver (GC9A01)
  • Rotary encoder
  • Button
  • Power management (Shutdown)
  • Touch-screen (FT3267)
  • Buzzer
  • Real-time clock (BM8563)
  • Port A (I2C)
  • Port B

How to use

First generate a base project using esp-generate or esp-idf-template as described in they respective documentations. Then, add this crate to your Cargo.toml:

[dependencies]
...
rotary-encoder-hal = "0.6.0"
...

In your main function then initialize this hall and use it:

let config = esp_hal::Config::default().with_cpu_clock(CpuClock::max());
let peripherals = esp_hal::init(config);

let mut board = m5dial::init(peripherals);
...

Examples

See screen_counter.rs

License

MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

Contriutions

... are welcome !

Credit

This crates rely on many crates of the embedded Rust working group, ESP support crates from Expressif, embedded-graphics and device drivers such as :

Commit count: 19

cargo fmt