2022-12-01 18:26:22 +01:00
|
|
|
#![no_std]
|
|
|
|
#![no_main]
|
|
|
|
#![feature(type_alias_impl_trait)]
|
|
|
|
|
|
|
|
use embassy_executor::Spawner;
|
|
|
|
use embassy_rp::gpio;
|
2023-10-15 01:57:25 +02:00
|
|
|
use embassy_time::Timer;
|
2022-12-01 18:26:22 +01:00
|
|
|
use gpio::{Level, Output};
|
|
|
|
use {defmt_rtt as _, panic_reset as _};
|
|
|
|
|
|
|
|
#[embassy_executor::main]
|
|
|
|
async fn main(_s: Spawner) {
|
|
|
|
let p = embassy_rp::init(Default::default());
|
|
|
|
let mut led = Output::new(p.PIN_25, Level::Low);
|
|
|
|
|
|
|
|
loop {
|
|
|
|
led.set_high();
|
2023-10-15 01:57:25 +02:00
|
|
|
Timer::after_millis(100).await;
|
2022-12-01 18:26:22 +01:00
|
|
|
|
|
|
|
led.set_low();
|
2023-10-15 01:57:25 +02:00
|
|
|
Timer::after_millis(100).await;
|
2022-12-01 18:26:22 +01:00
|
|
|
}
|
|
|
|
}
|