aboutsummaryrefslogtreecommitdiff
path: root/docs/modules/ROOT/examples/basic/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-01-22 20:44:57 +0000
committerGitHub <[email protected]>2024-01-22 20:44:57 +0000
commitc1ba008be457cdc8fe083fe36e380aa60dd784e2 (patch)
treecaabf0c20ce7d2d07e292690b1afb9baa606610f /docs/modules/ROOT/examples/basic/src
parent20fd03a14f1261e7b2264dcbca8e164393e66b94 (diff)
parentee0ebe3121e5d51240e671d8c5cc19ad878b9db9 (diff)
Merge pull request #2471 from embassy-rs/remove-gpio-generics
gpio: remove generics.
Diffstat (limited to 'docs/modules/ROOT/examples/basic/src')
-rw-r--r--docs/modules/ROOT/examples/basic/src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/modules/ROOT/examples/basic/src/main.rs b/docs/modules/ROOT/examples/basic/src/main.rs
index 2a4ee5968..4412712c8 100644
--- a/docs/modules/ROOT/examples/basic/src/main.rs
+++ b/docs/modules/ROOT/examples/basic/src/main.rs
@@ -4,12 +4,11 @@
4use defmt::*; 4use defmt::*;
5use embassy_executor::Spawner; 5use embassy_executor::Spawner;
6use embassy_nrf::gpio::{Level, Output, OutputDrive}; 6use embassy_nrf::gpio::{Level, Output, OutputDrive};
7use embassy_nrf::peripherals::P0_13;
8use embassy_time::{Duration, Timer}; 7use embassy_time::{Duration, Timer};
9use {defmt_rtt as _, panic_probe as _}; // global logger 8use {defmt_rtt as _, panic_probe as _}; // global logger
10 9
11#[embassy_executor::task] 10#[embassy_executor::task]
12async fn blinker(mut led: Output<'static, P0_13>, interval: Duration) { 11async fn blinker(mut led: Output<'static>, interval: Duration) {
13 loop { 12 loop {
14 led.set_high(); 13 led.set_high();
15 Timer::after(interval).await; 14 Timer::after(interval).await;