IT WOOORKS!!
This commit is contained in:
parent
bfdfdc01c5
commit
17dec99395
8 changed files with 59 additions and 159 deletions
|
|
@ -1,14 +1,10 @@
|
|||
use anyhow::{bail, Result};
|
||||
use esp_idf_svc::eventloop::EspSystemEventLoop;
|
||||
use esp_idf_svc::hal::prelude::Peripherals;
|
||||
use log::info;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
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_svc::sys::link_patches();
|
||||
|
||||
// Bind the log crate to the ESP Logging facilities
|
||||
esp_idf_svc::log::EspLogger::initialize_default();
|
||||
|
||||
let peripherals = Peripherals::take().unwrap();
|
||||
let sysloop = EspSystemEventLoop::take()?;
|
||||
|
||||
info!("Hello, world!");
|
||||
log::info!("Hello, world!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue