aboutsummaryrefslogtreecommitdiff
path: root/examples/lpc55s69/src
diff options
context:
space:
mode:
authorIrina Chiorean <[email protected]>2025-07-25 18:00:49 +0300
committerIrina Chiorean <[email protected]>2025-08-04 12:58:41 +0300
commit517714c98e4b5dc4c7ee844527f5d33fdc342125 (patch)
tree7dde24bb8bb16a14995483bb71450801bbf0675d /examples/lpc55s69/src
parenta8cb8a7fe1f594b765dee4cfc6ff3065842c7c6e (diff)
feat: add RTC time driver
Diffstat (limited to 'examples/lpc55s69/src')
-rw-r--r--examples/lpc55s69/src/bin/blinky_embassy_time.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/lpc55s69/src/bin/blinky_embassy_time.rs b/examples/lpc55s69/src/bin/blinky_embassy_time.rs
new file mode 100644
index 000000000..adc3d8bd3
--- /dev/null
+++ b/examples/lpc55s69/src/bin/blinky_embassy_time.rs
@@ -0,0 +1,26 @@
1#![no_std]
2#![no_main]
3
4use defmt::*;
5use embassy_executor::Spawner;
6use embassy_nxp::gpio::{Level, Output};
7use embassy_time::Timer;
8use {defmt_rtt as _, panic_halt as _};
9
10#[embassy_executor::main]
11async fn main(_spawner: Spawner) {
12 let p = embassy_nxp::init(Default::default());
13 info!("Initialization complete");
14 let mut led = Output::new(p.PIO1_6, Level::Low);
15
16 info!("Entering main loop");
17 loop {
18 info!("led off!");
19 led.set_high();
20 Timer::after_millis(500).await;
21
22 info!("led on!");
23 led.set_low();
24 Timer::after_millis(500).await;
25 }
26}