aboutsummaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authorBen V. Brown <[email protected]>2023-06-18 14:22:08 +1000
committerBen V. Brown <[email protected]>2023-06-18 14:22:08 +1000
commit313336b61f074bfe31dcdd10a4a088c731a5091a (patch)
treecee20db650fd65f7e0cdb9fd7c5424aede17956e /source
parentc55a640d7f4a1930be82835520072cef46246294 (diff)
downloadIronOS-313336b61f074bfe31dcdd10a4a088c731a5091a.tar.gz
IronOS-313336b61f074bfe31dcdd10a4a088c731a5091a.zip
Swap OLED offset write to reduce glitching
@discip
Diffstat (limited to 'source')
-rw-r--r--source/Core/Drivers/OLED.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Core/Drivers/OLED.cpp b/source/Core/Drivers/OLED.cpp
index 92d3e40f..a43754aa 100644
--- a/source/Core/Drivers/OLED.cpp
+++ b/source/Core/Drivers/OLED.cpp
@@ -348,8 +348,8 @@ void OLED::transitionScrollDown() {
screenBuffer[15] = (pageStart + 1) % 8;
uint8_t scrollCommandByte = 0b01000000;
OLED_Setup_Array[8].val = scrollCommandByte;
- I2C_CLASS::I2C_RegisterWrite(DEVICEADDR_OLED, 0x80, scrollCommandByte);
refresh();
+ I2C_CLASS::I2C_RegisterWrite(DEVICEADDR_OLED, 0x80, scrollCommandByte);
}
void OLED::setRotation(bool leftHanded) {