From 5603d0cd38319288d11d9dbecc6db1510f9e5e9e Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Thu, 11 Apr 2019 15:47:26 +0200 Subject: [PATCH] Configure the TFT spi to 24MHz by default That is (slightly) out of spec for the display, but it works reliably. --- ports/atmel-samd/boards/pybadge/board.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/atmel-samd/boards/pybadge/board.c b/ports/atmel-samd/boards/pybadge/board.c index ba18a28966..9d16ae12f2 100644 --- a/ports/atmel-samd/boards/pybadge/board.c +++ b/ports/atmel-samd/boards/pybadge/board.c @@ -73,6 +73,7 @@ void board_init(void) { busio_spi_obj_t* spi = &displays[0].fourwire_bus.inline_bus; common_hal_busio_spi_construct(spi, &pin_PB13, &pin_PB15, NULL); common_hal_busio_spi_never_reset(spi); + common_hal_busio_spi_configure(spi, 24000000, 0, 0, 8); displayio_fourwire_obj_t* bus = &displays[0].fourwire_bus; bus->base.type = &displayio_fourwire_type;