diff options
Diffstat (limited to 'docs/modules/ROOT/examples/basic/src')
| -rw-r--r-- | docs/modules/ROOT/examples/basic/src/main.rs | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/docs/modules/ROOT/examples/basic/src/main.rs b/docs/modules/ROOT/examples/basic/src/main.rs index 8394f73b7..461741fd7 100644 --- a/docs/modules/ROOT/examples/basic/src/main.rs +++ b/docs/modules/ROOT/examples/basic/src/main.rs | |||
| @@ -2,18 +2,13 @@ | |||
| 2 | #![no_main] | 2 | #![no_main] |
| 3 | #![feature(type_alias_impl_trait)] | 3 | #![feature(type_alias_impl_trait)] |
| 4 | 4 | ||
| 5 | use defmt_rtt as _; // global logger | ||
| 6 | use panic_probe as _; | ||
| 7 | |||
| 8 | use defmt::*; | 5 | use defmt::*; |
| 9 | |||
| 10 | use embassy::executor::Spawner; | 6 | use embassy::executor::Spawner; |
| 11 | use embassy::time::{Duration, Timer}; | 7 | use embassy::time::{Duration, Timer}; |
| 12 | use embassy_nrf::{ | 8 | use embassy_nrf::gpio::{Level, Output, OutputDrive}; |
| 13 | gpio::{Level, Output, OutputDrive}, | 9 | use embassy_nrf::peripherals::P0_13; |
| 14 | peripherals::P0_13, | 10 | use embassy_nrf::Peripherals; |
| 15 | Peripherals, | 11 | use {defmt_rtt as _, panic_probe as _}; // global logger |
| 16 | }; | ||
| 17 | 12 | ||
| 18 | #[embassy::task] | 13 | #[embassy::task] |
| 19 | async fn blinker(mut led: Output<'static, P0_13>, interval: Duration) { | 14 | async fn blinker(mut led: Output<'static, P0_13>, interval: Duration) { |
