Merge pull request #177 from DarkZeros/SPI20MHz

SPI set to 20MHz
pull/127/merge
SQFMI 2022-08-27 16:05:25 -04:00 committed by GitHub
commit fdfe7ee2be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ void Watchy::init(String datetime) {
RTC.init(); RTC.init();
// Init the display here for all cases, if unused, it will do nothing // Init the display here for all cases, if unused, it will do nothing
display.epd2.selectSPI(SPI, SPISettings(20000000, MSBFIRST, SPI_MODE0)); // Set SPI to 20Mhz (default is 4Mhz)
display.init(0, displayFullInit, 10, display.init(0, displayFullInit, 10,
true); // 10ms by spec, and fast pulldown reset true); // 10ms by spec, and fast pulldown reset
display.epd2.setBusyCallback(displayBusyCallback); display.epd2.setBusyCallback(displayBusyCallback);