From aa0abe976a481b0fb58d6bdee5d448658e6f8ffc Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Fri, 10 Dec 2021 12:58:23 +0100 Subject: Fix doc example compile --- docs/modules/ROOT/examples/basic/Cargo.toml | 5 ++--- docs/modules/ROOT/examples/basic/src/main.rs | 7 +++++-- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'docs/modules/ROOT/examples') diff --git a/docs/modules/ROOT/examples/basic/Cargo.toml b/docs/modules/ROOT/examples/basic/Cargo.toml index a683a28bf..0f1c30da3 100644 --- a/docs/modules/ROOT/examples/basic/Cargo.toml +++ b/docs/modules/ROOT/examples/basic/Cargo.toml @@ -5,9 +5,8 @@ name = "embassy-basic-example" version = "0.1.0" [dependencies] -embassy = { version = "0.1.0", path = "../../../../embassy", features = ["defmt"] } -embassy-traits = { version = "0.1.0", path = "../../../../embassy-traits", features = ["defmt"] } -embassy-nrf = { version = "0.1.0", path = "../../../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote"] } +embassy = { version = "0.1.0", path = "../../../../../embassy", features = ["defmt"] } +embassy-nrf = { version = "0.1.0", path = "../../../../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote"] } defmt = "0.3" defmt-rtt = "0.3" diff --git a/docs/modules/ROOT/examples/basic/src/main.rs b/docs/modules/ROOT/examples/basic/src/main.rs index 0152b40bb..2a9b1facc 100644 --- a/docs/modules/ROOT/examples/basic/src/main.rs +++ b/docs/modules/ROOT/examples/basic/src/main.rs @@ -9,8 +9,11 @@ use defmt::*; use embassy::executor::Spawner; use embassy::time::{Duration, Timer}; -use embassy_nrf::gpio::{Level, Output, OutputDrive}; -use embassy_nrf::Peripherals; +use embassy_nrf::{ + gpio::{Level, Output, OutputDrive}, + peripherals::P0_13, + Peripherals, +}; use embedded_hal::digital::v2::OutputPin; #[embassy::task] -- cgit