diff --git a/drivers/st7789/st7789.hpp b/drivers/st7789/st7789.hpp index a0f1f34e..78a939b2 100644 --- a/drivers/st7789/st7789.hpp +++ b/drivers/st7789/st7789.hpp @@ -29,7 +29,9 @@ namespace pimoroni { uint bl = SPI_BG_FRONT_PWM; uint vsync = PIN_UNUSED; // only available on some products - static const uint32_t SPI_BAUD = 16 * 1000 * 1000; + // The ST7789 requires 16 ns between SPI rising edges. + // 16 ns = 62,500,000 Hz + static const uint32_t SPI_BAUD = 62'500'000; public: // frame buffer where pixel data is stored diff --git a/libraries/pico_display_2/pico_display_2.cpp b/libraries/pico_display_2/pico_display_2.cpp index 38227b33..cf8b0cc5 100644 --- a/libraries/pico_display_2/pico_display_2.cpp +++ b/libraries/pico_display_2/pico_display_2.cpp @@ -49,7 +49,7 @@ namespace pimoroni { gpio_set_function(Y, GPIO_FUNC_SIO); gpio_set_dir(Y, GPIO_IN); gpio_pull_up(Y); // initialise the screen - screen.init(true, false, 74 * 1000 * 1000); + screen.init(true, false); } void PicoDisplay2::update() {