mirror of
https://github.com/meshtastic/firmware.git
synced 2026-09-21 13:55:24 -04:00
Merge eink-driver-layer Y-end fix
This commit is contained in:
commit
bca0ff8a17
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user