Merge pull request #1780 from pewpew-game/pybadge-spi-24mhz

Configure the TFT spi to 24MHz by default
This commit is contained in:
Scott Shawcroft 2019-04-11 10:43:15 -07:00 committed by GitHub
commit 959258b3ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;