From 6b232ddb30cd9b971537fe307d583e7ba06af0f1 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Thu, 23 Jun 2022 16:12:58 +0100 Subject: [PATCH] UC8151: Invert by default.. --- drivers/uc8151/uc8151.cpp | 2 +- drivers/uc8151/uc8151.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/uc8151/uc8151.cpp b/drivers/uc8151/uc8151.cpp index 098ff11b..25342409 100644 --- a/drivers/uc8151/uc8151.cpp +++ b/drivers/uc8151/uc8151.cpp @@ -381,7 +381,7 @@ namespace pimoroni { }); command(TCON, {0x22}); // tcon setting - command(CDI, {(uint8_t)(inverted ? 0b01'01'1100 : 0b01'00'1100)}); // vcom and data interval + command(CDI, {(uint8_t)(inverted ? 0b10'01'1100 : 0b01'00'1100)}); // vcom and data interval command(PLL, { HZ_100 diff --git a/drivers/uc8151/uc8151.hpp b/drivers/uc8151/uc8151.hpp index 6a29e76a..165eaf02 100644 --- a/drivers/uc8151/uc8151.hpp +++ b/drivers/uc8151/uc8151.hpp @@ -138,7 +138,7 @@ namespace pimoroni { uint RESET = PIN_UNUSED; uint8_t update_speed = 0; - bool inverted = false; + bool inverted = true; // Makes 0 black and 1 white, as is foretold. bool blocking = true; public: