display is working
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user