mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-23 09:46:33 +11:00
Update example feather_neopixel_rainbow.rs with new Timer syntax (#148)
This commit is contained in:
parent
82dfd8e2cc
commit
666b22f56b
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ fn main() -> ! {
|
||||||
|
|
||||||
let _neopixel: Pin<_, FunctionPio0> = pins.neopixel.into_mode();
|
let _neopixel: Pin<_, FunctionPio0> = pins.neopixel.into_mode();
|
||||||
|
|
||||||
let timer = Timer::new(pac.TIMER);
|
let timer = Timer::new(pac.TIMER, &mut pac.RESETS);
|
||||||
let mut delay = timer.count_down();
|
let mut delay = timer.count_down();
|
||||||
|
|
||||||
// Configure the addressable LED
|
// Configure the addressable LED
|
||||||
|
|
Loading…
Add table
Reference in a new issue