Basic project setup #1

Merged
an.tsouchlos merged 7 commits from feature/project_setup into master 2024-11-01 23:49:57 +00:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit cf94ca645d - Show all commits

View File

@ -23,3 +23,4 @@ Firmware for the CommonSense project.
- 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
- This may be useful for unit testing: https://crates.io/crates/embedded-test

View File

@ -1,6 +1,7 @@
#![no_std]
#![no_main]
use defmt::info;
use embassy_executor::Spawner;
use embassy_nrf::gpio::{Level, Output, OutputDrive};
use embassy_time::Timer;
@ -11,6 +12,8 @@ async fn main(_spawner: Spawner) {
let p = embassy_nrf::init(Default::default());
let mut led = Output::new(p.P0_18, Level::Low, OutputDrive::Standard);
info!("Starting blinky");
loop {
led.set_high();
Timer::after_millis(300).await;