Skip to content

Commit b92a6e1

Browse files
authored
Update WipperSnapper_I2C_Driver_Out_Sh1107.h
1 parent 61da902 commit b92a6e1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Sh1107.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,23 @@ class WipperSnapper_I2C_Driver_Out_SH1107
7171
_display = new Adafruit_SH1107(_width, _height, _i2c);
7272
if (!_display->begin(_sensorAddress, true))
7373
return false;
74-
// Configure the text size and color
74+
75+
// Show image buffer on the display hardware.
76+
// Since the buffer is intialized with an Adafruit splashscreen
77+
// internally, this will display the splashscreen.
78+
display.display();
79+
delay(700);
80+
81+
// Clear the buffer.
82+
display.clearDisplay();
83+
display.display();
84+
display.setRotation(1);
85+
86+
// Configure the text size and color
7587
_display->setTextSize(_text_sz);
7688
_display->setTextColor(SH110X_WHITE);
7789
// Use full 256 char 'Code Page 437' font
78-
_display->cp437(true);
90+
// _display->cp437(true);
7991
// Clear the buffer
8092
_display->clearDisplay();
8193
_display->display();

0 commit comments

Comments
 (0)