aboutsummaryrefslogtreecommitdiff
path: root/docs/modules/ROOT/examples/basic/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'docs/modules/ROOT/examples/basic/src/main.rs')
-rw-r--r--docs/modules/ROOT/examples/basic/src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/modules/ROOT/examples/basic/src/main.rs b/docs/modules/ROOT/examples/basic/src/main.rs
index 04170db55..4412712c8 100644
--- a/docs/modules/ROOT/examples/basic/src/main.rs
+++ b/docs/modules/ROOT/examples/basic/src/main.rs
@@ -1,16 +1,14 @@
1#![no_std] 1#![no_std]
2#![no_main] 2#![no_main]
3#![feature(type_alias_impl_trait)]
4 3
5use defmt::*; 4use defmt::*;
6use embassy_executor::Spawner; 5use embassy_executor::Spawner;
7use embassy_nrf::gpio::{Level, Output, OutputDrive}; 6use embassy_nrf::gpio::{Level, Output, OutputDrive};
8use embassy_nrf::peripherals::P0_13;
9use embassy_time::{Duration, Timer}; 7use embassy_time::{Duration, Timer};
10use {defmt_rtt as _, panic_probe as _}; // global logger 8use {defmt_rtt as _, panic_probe as _}; // global logger
11 9
12#[embassy_executor::task] 10#[embassy_executor::task]
13async fn blinker(mut led: Output<'static, P0_13>, interval: Duration) { 11async fn blinker(mut led: Output<'static>, interval: Duration) {
14 loop { 12 loop {
15 led.set_high(); 13 led.set_high();
16 Timer::after(interval).await; 14 Timer::after(interval).await;