Add initial project structure and implement async main for Pico W
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
#![no_std]
|
||||
|
||||
// Logic and hardware-independent code goes here.
|
||||
// This allows you to run `cargo test` on your host machine.
|
||||
+10
-2
@@ -1,3 +1,11 @@
|
||||
fn main() {
|
||||
println!("Hello from Rust skeletal app. Edit src/main.rs to get started!");
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
use defmt_rtt as _;
|
||||
use panic_probe as _;
|
||||
use embassy_executor::Spawner;
|
||||
|
||||
#[embassy_executor::main]
|
||||
async fn main(_spawner: Spawner) {
|
||||
defmt::info!("Hello from the Pico W!");
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
mod mqtt;
|
||||
mod wifi;
|
||||
Reference in New Issue
Block a user