Skip to content

Commit 5603d0c

Browse files
committed
Configure the TFT spi to 24MHz by default
That is (slightly) out of spec for the display, but it works reliably.
1 parent cf3f3e5 commit 5603d0c

File tree

1 file changed

+1
-0
lines changed
  • ports/atmel-samd/boards/pybadge

1 file changed

+1
-0
lines changed

ports/atmel-samd/boards/pybadge/board.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ void board_init(void) {
7373
busio_spi_obj_t* spi = &displays[0].fourwire_bus.inline_bus;
7474
common_hal_busio_spi_construct(spi, &pin_PB13, &pin_PB15, NULL);
7575
common_hal_busio_spi_never_reset(spi);
76+
common_hal_busio_spi_configure(spi, 24000000, 0, 0, 8);
7677

7778
displayio_fourwire_obj_t* bus = &displays[0].fourwire_bus;
7879
bus->base.type = &displayio_fourwire_type;

0 commit comments

Comments
 (0)