Set SPI to 20MHz

* Speed up SPI transfer to the display
  by using 20Mhz instead of default 4Mhz
  This saves around 16ms = 1.5mJ/refresh
  or 2160mJ/day = 0.6mWh/day = 0.2mAh/day
  (890ms -> 874ms)
Daniel Ansorregui 2022-08-03 11:51:13 +01:00
parent 3e3a8859a9
commit 561673927c
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ void Watchy::init(String datetime) {
// 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,
true); // 10ms by spec, and fast pulldown reset