From 64fa39c7788b7d1bbdcdb0c49cecd9b66a7bee33 Mon Sep 17 00:00:00 2001 From: Borna Biro <43830307+BornaBiro@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:21:12 +0200 Subject: [PATCH] Fixed power up and power down sequence on TPS65186. --- src/Inkplate.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Inkplate.cpp b/src/Inkplate.cpp index 6b1f901e..a3a4c6c1 100644 --- a/src/Inkplate.cpp +++ b/src/Inkplate.cpp @@ -104,10 +104,16 @@ int Inkplate::einkOn() WAKEUP_SET; delay(5); - // Modify power up sequence (VEE and VNEG are swapped) + // Modify power up sequence. Wire.beginTransmission(0x48); Wire.write(0x09); - Wire.write(B11100001); + Wire.write(B11100100); + Wire.endTransmission(); + + // Modify power down sequence (VEE and VNEG are swapped) + Wire.beginTransmission(0x48); + Wire.write(0x0b); + Wire.write(B00011011); Wire.endTransmission(); #ifdef ARDUINO_INKPLATE6PLUSV2