Initial commit

This commit is contained in:
2023-07-14 13:12:43 +02:00
commit 443ef167c1
9 changed files with 151 additions and 0 deletions

12
src/main.rs Normal file
View File

@@ -0,0 +1,12 @@
use esp_idf_sys as _; // If using the `binstart` feature of `esp-idf-sys`, always keep this module imported
use log::*;
fn main() {
// It is necessary to call this function once. Otherwise some patches to the runtime
// implemented by esp-idf-sys might not link properly. See https://github.com/esp-rs/esp-idf-template/issues/71
esp_idf_sys::link_patches();
// Bind the log crate to the ESP Logging facilities
esp_idf_svc::log::EspLogger::initialize_default();
info!("Hello, world!");
}