diff options
Diffstat (limited to 'examples/stm32g0/src/bin/spi_neopixel.rs')
| -rw-r--r-- | examples/stm32g0/src/bin/spi_neopixel.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32g0/src/bin/spi_neopixel.rs b/examples/stm32g0/src/bin/spi_neopixel.rs index ee7aaf33f..214462d0e 100644 --- a/examples/stm32g0/src/bin/spi_neopixel.rs +++ b/examples/stm32g0/src/bin/spi_neopixel.rs | |||
| @@ -8,7 +8,7 @@ use embassy_stm32::dma::word::U5; | |||
| 8 | use embassy_stm32::dma::NoDma; | 8 | use embassy_stm32::dma::NoDma; |
| 9 | use embassy_stm32::spi::{Config, Spi}; | 9 | use embassy_stm32::spi::{Config, Spi}; |
| 10 | use embassy_stm32::time::Hertz; | 10 | use embassy_stm32::time::Hertz; |
| 11 | use embassy_time::{Duration, Timer}; | 11 | use embassy_time::Timer; |
| 12 | use {defmt_rtt as _, panic_probe as _}; | 12 | use {defmt_rtt as _, panic_probe as _}; |
| 13 | 13 | ||
| 14 | const NR_PIXELS: usize = 15; | 14 | const NR_PIXELS: usize = 15; |
| @@ -96,8 +96,8 @@ async fn main(_spawner: Spawner) { | |||
| 96 | cnt += 1; | 96 | cnt += 1; |
| 97 | // start sending the neopixel bit patters over spi to the neopixel string | 97 | // start sending the neopixel bit patters over spi to the neopixel string |
| 98 | spi.write(&neopixels.bitbuffer).await.ok(); | 98 | spi.write(&neopixels.bitbuffer).await.ok(); |
| 99 | Timer::after(Duration::from_millis(500)).await; | 99 | Timer::after_millis(500).await; |
| 100 | } | 100 | } |
| 101 | Timer::after(Duration::from_millis(1000)).await; | 101 | Timer::after_millis(1000).await; |
| 102 | } | 102 | } |
| 103 | } | 103 | } |
