From 561673927c1e8101f2c96a549ddf26f88e506ac8 Mon Sep 17 00:00:00 2001 From: Daniel Ansorregui Date: Wed, 3 Aug 2022 11:51:13 +0100 Subject: [PATCH] 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) --- src/Watchy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Watchy.cpp b/src/Watchy.cpp index 98e94e3..a5b7a2a 100644 --- a/src/Watchy.cpp +++ b/src/Watchy.cpp @@ -20,6 +20,7 @@ void Watchy::init(String datetime) { RTC.init(); // 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 display.epd2.setBusyCallback(displayBusyCallback);