Rust on ESP32 STD demo app. A demo STD binary crate for the ESP32[XX] and ESP-IDF, which connects to WiFi, Ethernet, drives a small HTTP server and draws on a LED screen.
I have tried compiling with the heltec feature, but it always fails:
woidbaier@test22:~/Desktop//rust-esp32-std-demo$` cargo build --features heltec
Updating crates.io index
Compiling compiler_builtins v0.1.82
[...]
Compiling mipidsi v0.5.0
error[E0277]: the trait bound `BinaryColor: embedded_graphics::prelude::RgbColor` is not satisfied
--> src/main.rs:926:14
|
926 | led_draw(&mut display).map_err(|e| anyhow::anyhow!("Display error: {:?}", e))?;
| -------- ^^^^^^^^^^^^ the trait `embedded_graphics::prelude::RgbColor` is not implemented for `BinaryColor`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `embedded_graphics::prelude::RgbColor`:
Bgr555
Bgr565
Bgr666
Bgr888
Rgb555
Rgb565
Rgb666
Rgb888
note: required by a bound in `led_draw`
--> src/main.rs:1080:15
|
1077 | fn led_draw<D>(display: &mut D) -> Result<(), D::Error>
| -------- required by a bound in this
...
1080 | D::Color: RgbColor,
| ^^^^^^^^ required by this bound in `led_draw`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `rust-esp32-std-demo` due to previous error
I have tried compiling with the heltec feature, but it always fails: