Update example feather_neopixel_rainbow.rs with new Timer syntax (#148)

This commit is contained in:
9names 2021-10-02 16:03:36 +10:00 committed by GitHub
parent 82dfd8e2cc
commit 666b22f56b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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