Skip to content

Commit

Permalink
fix SPI frequency to 40MHz
Browse files Browse the repository at this point in the history
  • Loading branch information
georgik authored Feb 12, 2024
1 parent 2a358e3 commit b1602f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ fn main() -> ! {
let mut descriptors = [0u32; 8 * 3];
let mut rx_descriptors = [0u32; 8 * 3];

let spi = Spi::new(peripherals.SPI2, 60u32.MHz(), SpiMode::Mode0, &clocks)
let spi = Spi::new(peripherals.SPI2, 40u32.MHz(), SpiMode::Mode0, &clocks)
.with_pins(Some(lcd_sclk), Some(lcd_mosi), Some(lcd_miso), Some(lcd_cs))
.with_dma(dma_channel.configure(
false,
Expand Down

0 comments on commit b1602f2

Please sign in to comment.