match up with stm32f429zi feature flag

stm32f429 has less DMA channel than stm32f411
This commit is contained in:
eZio Pan 2023-12-18 00:06:32 +08:00
parent 0a890cfbe7
commit 1934c2abc8

View File

@ -78,7 +78,7 @@ async fn main(_spawner: embassy_executor::Spawner) {
spi_config.frequency = khz(12_800);
// Since we only output waveform, then the Rx and Sck it is not considered
let mut ws2812_spi = spi::Spi::new_txonly_nosck(dp.SPI1, dp.PB5, dp.DMA2_CH2, dma::NoDma, spi_config);
let mut ws2812_spi = spi::Spi::new_txonly_nosck(dp.SPI1, dp.PB5, dp.DMA2_CH3, dma::NoDma, spi_config);
// flip color at 2 Hz
let mut ticker = Ticker::every(Duration::from_millis(500));