mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
match up with stm32f429zi feature flag
stm32f429 has less DMA channel than stm32f411
This commit is contained in:
parent
0a890cfbe7
commit
1934c2abc8
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user