| Crates.io | m5dial-bsp |
| lib.rs | m5dial-bsp |
| version | 0.5.0 |
| created_at | 2025-02-11 22:22:55.308945+00 |
| updated_at | 2025-11-24 21:06:28.56174+00 |
| description | Board support package for the M5 Dial. |
| homepage | https://github.com/AntoineZen/m5dial-bsp |
| repository | https://github.com/AntoineZen/m5dial-bsp |
| max_upload_size | |
| id | 1552046 |
| size | 76,684 |
This crates is a Board support package for the M5 Dial.
Feature list/roadmap:
First generate a base project using esp-generate as described in its documentation.
Then, add this crate to your Cargo.toml:
[dependencies]
....
m5dial-bsp= "0.5.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 display = m5dial_bsp::get_screen!(peripherals);
let mut encoder = m5dial_bsp::get_encoder!(peripherals);
let mut board = m5dial_bsp::board_init!(peripherals);
For more information, please refer to the API Documentation. (Don't refers to the doc on docs.rs, as they fail to compile due to the lack of ESP specific toolchain.)
Examples are located in the examples folder. Here is an index:
MIT license (LICENSE or http://opensource.org/licenses/MIT)
... are welcome !
This crates rely on many crates of the embedded Rust working group, ESP support crates from Expressif, embedded-graphics and device drivers such as :