aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/St7789.h
diff options
context:
space:
mode:
authormark9064 <30447455+mark9064@users.noreply.github.com>2024-01-30 23:29:16 +0000
committerJF <JF002@users.noreply.github.com>2024-05-01 16:17:59 +0200
commit7b1110187e92c739f85fbfdcf80f4547f1283a33 (patch)
tree4d5110dfe522ab9e25b64762b5475296778cff40 /src/drivers/St7789.h
parent7e460d3c8072cbddf98172be9e94ede8e6613de5 (diff)
Apply display driver datasheet delays
Diffstat (limited to 'src/drivers/St7789.h')
-rw-r--r--src/drivers/St7789.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h
index 715bd1bd..fcb6f944 100644
--- a/src/drivers/St7789.h
+++ b/src/drivers/St7789.h
@@ -3,6 +3,10 @@
#include <cstdint>
#include <functional>
+#include <hal/nrf_gpio.h>
+#include <nrfx_log.h>
+#include "drivers/Spi.h"
+
namespace Pinetime {
namespace Drivers {
class Spi;
@@ -30,10 +34,13 @@ namespace Pinetime {
uint8_t pinDataCommand;
uint8_t pinReset;
uint8_t verticalScrollingStartAddress = 0;
+ bool sleepIn;
+ TickType_t lastSleepExit;
void HardwareReset();
void SoftwareReset();
void SleepOut();
+ void EnsureSleepOutPostDelay();
void SleepIn();
void ColMod();
void MemoryDataAccessControl();