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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user