Cleanup wacky imports in examples

This commit is contained in:
Jennifer Wilcox 2021-04-24 16:22:27 -05:00
parent 2c3a0956fa
commit 2e5c1fc0e3
2 changed files with 6 additions and 10 deletions

View file

@ -4,17 +4,15 @@
#![no_std]
#![no_main]
use panic_halt as _;
use cortex_m_rt::entry;
use embedded_hal::digital::v2::OutputPin;
use panic_halt as _;
use rp2040_hal::prelude::*;
#[link_section = ".boot2"]
#[used]
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;
use embedded_hal::digital::v2::OutputPin;
use rp2040_hal::prelude::*;
#[entry]
fn main() -> ! {
let mut pac = rp2040_pac::Peripherals::take().unwrap();

View file

@ -6,17 +6,15 @@
#![no_std]
#![no_main]
use panic_halt as _;
use cortex_m_rt::entry;
use embedded_hal::digital::v2::{InputPin, OutputPin};
use panic_halt as _;
use rp2040_hal::prelude::*;
#[link_section = ".boot2"]
#[used]
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;
use embedded_hal::digital::v2::{InputPin, OutputPin};
use rp2040_hal::prelude::*;
#[entry]
fn main() -> ! {
let mut pac = rp2040_pac::Peripherals::take().unwrap();