Add link to README; add print statement to main
This commit is contained in:
parent
903a1af075
commit
cf94ca645d
@ -23,3 +23,4 @@ Firmware for the CommonSense project.
|
|||||||
|
|
||||||
- If flashing fails after being successful the first time, take a look at this:
|
- If flashing fails after being successful the first time, take a look at this:
|
||||||
https://users.rust-lang.org/t/probe-rs-fails-to-work-after-first-time-use-successful/103234
|
https://users.rust-lang.org/t/probe-rs-fails-to-work-after-first-time-use-successful/103234
|
||||||
|
- This may be useful for unit testing: https://crates.io/crates/embedded-test
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
|
use defmt::info;
|
||||||
use embassy_executor::Spawner;
|
use embassy_executor::Spawner;
|
||||||
use embassy_nrf::gpio::{Level, Output, OutputDrive};
|
use embassy_nrf::gpio::{Level, Output, OutputDrive};
|
||||||
use embassy_time::Timer;
|
use embassy_time::Timer;
|
||||||
@ -11,6 +12,8 @@ async fn main(_spawner: Spawner) {
|
|||||||
let p = embassy_nrf::init(Default::default());
|
let p = embassy_nrf::init(Default::default());
|
||||||
let mut led = Output::new(p.P0_18, Level::Low, OutputDrive::Standard);
|
let mut led = Output::new(p.P0_18, Level::Low, OutputDrive::Standard);
|
||||||
|
|
||||||
|
info!("Starting blinky");
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
led.set_high();
|
led.set_high();
|
||||||
Timer::after_millis(300).await;
|
Timer::after_millis(300).await;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user