display is working

This commit is contained in:
Priec
2026-01-08 23:36:54 +01:00
parent 5efb08ef99
commit 5e7285f45d
5 changed files with 167 additions and 15 deletions

View File

@@ -25,6 +25,7 @@ use projekt_final::mqtt::client::{
mqtt_events, mqtt_publish, mqtt_subscribe, mqtt_task, IncomingMsg,
};
use projekt_final::i2c::com::i2c_check;
use projekt_final::i2c::com::display_task;
use defmt_rtt as _;
extern crate alloc;
@@ -102,7 +103,7 @@ async fn main(spawner: Spawner) -> ! {
spawner.spawn(mqtt_task(stack)).expect("failed to spawn MQTT task");
info!("MQTT task started");
spawner.spawn(i2c_check()).expect("failed to spawn I2C task");
spawner.spawn(display_task()).expect("failed to spawn Display task");
info!("I2C scan task started");
mqtt_publish("esp32/topic", b"hello from ESP32 (init)", QualityOfService::QoS1, false).await;