oled: split out the ssd1306 driver into its own module, and reimplement the oled design with separate rendering and drawing tasks

This commit is contained in:
2025-10-25 17:51:03 +02:00
parent db912e0085
commit 27e92edef0
9 changed files with 412 additions and 129 deletions

View File

@@ -103,7 +103,7 @@ async fn main(spawner: Spawner) {
{
use esp_hal::i2c::master::{Config, I2c};
let mut rst = Output::new(peripherals.GPIO21, esp_hal::gpio::Level::Low, OutputConfig::default());
let rst = Output::new(peripherals.GPIO21, esp_hal::gpio::Level::Low, OutputConfig::default());
let i2c = I2c::new(
peripherals.I2C0,
Config::default().with_frequency(Rate::from_khz(400))