File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -165,12 +165,6 @@ void beginDisplay(TwoWire *i2cBus)
165
165
oled->setPreCharge (0xF1 ); // Set Pre-charge Period (D9h)
166
166
oled->setVcomDeselect (0x40 ); // Set VCOMH Deselect Level (DBh)
167
167
oled->setContrast (0xCF ); // Set Contrast Control for BANK0 (81h)
168
-
169
- if (present.display_type == DISPLAY_128x64_INVERTED)
170
- {
171
- oled->flipVertical (true );
172
- oled->flipHorizontal (true );
173
- }
174
168
}
175
169
176
170
// Display may still be powering up
@@ -184,6 +178,12 @@ void beginDisplay(TwoWire *i2cBus)
184
178
185
179
systemPrintln (" Display started" );
186
180
181
+ if (present.display_type == DISPLAY_128x64_INVERTED)
182
+ {
183
+ oled->flipVertical (true );
184
+ oled->flipHorizontal (true );
185
+ }
186
+
187
187
// Display the brand LOGO
188
188
RTKBrandAttribute *brandAttribute = getBrandAttributeFromBrand (present.brand );
189
189
oled->erase ();
You can’t perform that action at this time.
0 commit comments