diff --git a/src/graphics/eink/Drivers/SSD1682.cpp b/src/graphics/eink/Drivers/SSD1682.cpp index c18752b63..e63b96333 100644 --- a/src/graphics/eink/Drivers/SSD1682.cpp +++ b/src/graphics/eink/Drivers/SSD1682.cpp @@ -18,7 +18,7 @@ void SSD1682::configFullscreen() const uint8_t sx = bufferOffsetX; // Notice the offset const uint8_t sy = 0; const uint8_t ex = bufferRowSize + bufferOffsetX - 1; // End is "max index", not "count". Minus 1 handles this - const uint8_t ey = height; + const uint8_t ey = height - 1; // Same: 0x45 Y-range is inclusive // Data entry mode - Left to Right, Top to Bottom sendCommand(0x11); diff --git a/src/graphics/eink/Drivers/SSD16XX.cpp b/src/graphics/eink/Drivers/SSD16XX.cpp index 45f568b99..a91c51a7d 100644 --- a/src/graphics/eink/Drivers/SSD16XX.cpp +++ b/src/graphics/eink/Drivers/SSD16XX.cpp @@ -144,7 +144,7 @@ void SSD16XX::configFullscreen() const uint16_t sx = bufferOffsetX; // Notice the offset const uint16_t sy = 0; const uint16_t ex = bufferRowSize + bufferOffsetX - 1; // End is "max index", not "count". Minus 1 handles this - const uint16_t ey = height; + const uint16_t ey = height - 1; // Same: 0x45 Y-range is inclusive // Split into bytes const uint8_t sy1 = sy & 0xFF;