diff options
| author | eZio Pan <[email protected]> | 2023-12-18 00:06:32 +0800 |
|---|---|---|
| committer | eZio Pan <[email protected]> | 2023-12-18 00:06:32 +0800 |
| commit | 1934c2abc81f0dd981fad625ec2712964d0a1a91 (patch) | |
| tree | d9e3bb4fb4c3b5fb0407ca43b5ed9ce71baf9e9c | |
| parent | 0a890cfbe7fc10bc40f2e97bc4fac17630e9864f (diff) | |
match up with stm32f429zi feature flag
stm32f429 has less DMA channel than stm32f411
| -rw-r--r-- | examples/stm32f4/src/bin/ws2812_spi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/ws2812_spi.rs b/examples/stm32f4/src/bin/ws2812_spi.rs index e0d28af7f..170f0b59b 100644 --- a/examples/stm32f4/src/bin/ws2812_spi.rs +++ b/examples/stm32f4/src/bin/ws2812_spi.rs | |||
| @@ -78,7 +78,7 @@ async fn main(_spawner: embassy_executor::Spawner) { | |||
| 78 | spi_config.frequency = khz(12_800); | 78 | spi_config.frequency = khz(12_800); |
| 79 | 79 | ||
| 80 | // Since we only output waveform, then the Rx and Sck it is not considered | 80 | // Since we only output waveform, then the Rx and Sck it is not considered |
| 81 | let mut ws2812_spi = spi::Spi::new_txonly_nosck(dp.SPI1, dp.PB5, dp.DMA2_CH2, dma::NoDma, spi_config); | 81 | let mut ws2812_spi = spi::Spi::new_txonly_nosck(dp.SPI1, dp.PB5, dp.DMA2_CH3, dma::NoDma, spi_config); |
| 82 | 82 | ||
| 83 | // flip color at 2 Hz | 83 | // flip color at 2 Hz |
| 84 | let mut ticker = Ticker::every(Duration::from_millis(500)); | 84 | let mut ticker = Ticker::every(Duration::from_millis(500)); |
