mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +11:00
Formatting
This commit is contained in:
parent
4959afe151
commit
882868c104
|
@ -4,9 +4,6 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
use cortex_m_rt::entry;
|
|
||||||
use embedded_hal::digital::v2::OutputPin;
|
|
||||||
use embedded_time::rate::*;
|
|
||||||
use adafruit_feather_rp2040::{
|
use adafruit_feather_rp2040::{
|
||||||
hal::{
|
hal::{
|
||||||
clocks::{init_clocks_and_plls, Clock},
|
clocks::{init_clocks_and_plls, Clock},
|
||||||
|
@ -16,6 +13,9 @@ use adafruit_feather_rp2040::{
|
||||||
},
|
},
|
||||||
Pins, XOSC_CRYSTAL_FREQ,
|
Pins, XOSC_CRYSTAL_FREQ,
|
||||||
};
|
};
|
||||||
|
use cortex_m_rt::entry;
|
||||||
|
use embedded_hal::digital::v2::OutputPin;
|
||||||
|
use embedded_time::rate::*;
|
||||||
use panic_halt as _;
|
use panic_halt as _;
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
|
|
|
@ -6,10 +6,6 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
use core::iter::once;
|
|
||||||
use cortex_m_rt::entry;
|
|
||||||
use embedded_hal::timer::CountDown;
|
|
||||||
use embedded_time::duration::Extensions;
|
|
||||||
use adafruit_feather_rp2040::{
|
use adafruit_feather_rp2040::{
|
||||||
hal::{
|
hal::{
|
||||||
clocks::{init_clocks_and_plls, Clock},
|
clocks::{init_clocks_and_plls, Clock},
|
||||||
|
@ -21,6 +17,10 @@ use adafruit_feather_rp2040::{
|
||||||
},
|
},
|
||||||
Pins, XOSC_CRYSTAL_FREQ,
|
Pins, XOSC_CRYSTAL_FREQ,
|
||||||
};
|
};
|
||||||
|
use core::iter::once;
|
||||||
|
use cortex_m_rt::entry;
|
||||||
|
use embedded_hal::timer::CountDown;
|
||||||
|
use embedded_time::duration::Extensions;
|
||||||
use panic_halt as _;
|
use panic_halt as _;
|
||||||
use smart_leds::{brightness, SmartLedsWrite, RGB8};
|
use smart_leds::{brightness, SmartLedsWrite, RGB8};
|
||||||
use ws2812_pio::Ws2812;
|
use ws2812_pio::Ws2812;
|
||||||
|
|
|
@ -14,6 +14,7 @@ use embedded_hal::timer::CountDown;
|
||||||
use embedded_time::duration::Extensions;
|
use embedded_time::duration::Extensions;
|
||||||
use panic_halt as _;
|
use panic_halt as _;
|
||||||
|
|
||||||
|
use smart_leds::{brightness, SmartLedsWrite, RGB8};
|
||||||
use sparkfun_pro_micro_rp2040::{
|
use sparkfun_pro_micro_rp2040::{
|
||||||
hal::{
|
hal::{
|
||||||
clocks::{init_clocks_and_plls, Clock},
|
clocks::{init_clocks_and_plls, Clock},
|
||||||
|
@ -25,7 +26,6 @@ use sparkfun_pro_micro_rp2040::{
|
||||||
},
|
},
|
||||||
XOSC_CRYSTAL_FREQ,
|
XOSC_CRYSTAL_FREQ,
|
||||||
};
|
};
|
||||||
use smart_leds::{brightness, SmartLedsWrite, RGB8};
|
|
||||||
use ws2812_pio::Ws2812;
|
use ws2812_pio::Ws2812;
|
||||||
|
|
||||||
/// Entry point to our bare-metal application.
|
/// Entry point to our bare-metal application.
|
||||||
|
|
Loading…
Reference in a new issue