aboutsummaryrefslogtreecommitdiff
path: root/examples/src/bin/blinky.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/bin/blinky.rs')
-rw-r--r--examples/src/bin/blinky.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/src/bin/blinky.rs b/examples/src/bin/blinky.rs
index ab1e59bdb..dd08ec0d9 100644
--- a/examples/src/bin/blinky.rs
+++ b/examples/src/bin/blinky.rs
@@ -3,7 +3,7 @@
3 3
4use embassy_executor::Spawner; 4use embassy_executor::Spawner;
5use embassy_time::Timer; 5use embassy_time::Timer;
6use hal::gpio::{Level, Output}; 6use hal::gpio::{DriveStrength, Level, Output, SlewRate};
7use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _}; 7use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _};
8 8
9#[embassy_executor::main] 9#[embassy_executor::main]
@@ -12,9 +12,9 @@ async fn main(_spawner: Spawner) {
12 12
13 defmt::info!("Blink example"); 13 defmt::info!("Blink example");
14 14
15 let mut red = Output::new(p.P3_18, Level::High); 15 let mut red = Output::new(p.P3_18, Level::High, DriveStrength::Normal, SlewRate::Fast);
16 let mut green = Output::new(p.P3_19, Level::High); 16 let mut green = Output::new(p.P3_19, Level::High, DriveStrength::Normal, SlewRate::Fast);
17 let mut blue = Output::new(p.P3_21, Level::High); 17 let mut blue = Output::new(p.P3_21, Level::High, DriveStrength::Normal, SlewRate::Fast);
18 18
19 loop { 19 loop {
20 defmt::info!("Toggle LEDs"); 20 defmt::info!("Toggle LEDs");