From 5008ce5549f75c697058dfb7de04922ee0b7b27b Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sat, 7 Oct 2023 22:30:48 -0700 Subject: [PATCH] Lower default SPI bus frequency to 30MHz. --- CMakeLists.txt | 2 +- src/display_lcd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3aa6fbc..2eb66fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake) project(fanpico - VERSION 1.5.0 + VERSION 1.5.1 LANGUAGES C CXX ASM ) set(CMAKE_C_STANDARD 11) diff --git a/src/display_lcd.c b/src/display_lcd.c index a55882e..a681f7b 100644 --- a/src/display_lcd.c +++ b/src/display_lcd.c @@ -264,7 +264,7 @@ void lcd_display_init() int dtype = LCD_INVALID; int flags = FLAGS_NONE; int orientation = LCD_ORIENTATION_90; - int32_t spi_freq = (48 * 1000 * 1000); // Default to 48MHz + int32_t spi_freq = 30000000; // Default SPI bus frequency 30MHz const char *lcd_name = ""; int val; char *args, *tok, *saveptr;