Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Fix ttgo and kaluga features #93

Merged
merged 1 commit into from
Jun 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,7 @@ fn ttgo_hello_world(
) -> Result<()> {
info!("About to initialize the TTGO ST7789 LED driver");

let config = <spi::config::Config as Default>::default()
.write_only(true)
.baudrate(80.MHz().into());
let config = <spi::config::Config as Default>::default().baudrate(26.MHz().into());

let mut backlight = backlight.into_output()?;
backlight.set_high()?;
Expand Down Expand Up @@ -857,7 +855,8 @@ fn kaluga_hello_world(
&mut delay::Ets,
KalugaOrientation::Landscape,
ili9341::DisplaySize240x320,
)?;
)
.map_err(|e| anyhow::anyhow!("Display error: {:?}", e))?;

led_draw(&mut display).map_err(|e| anyhow::anyhow!("Display error: {:?}", e))
} else {
Expand Down