File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments