Skip to content

Commit d2560fa

Browse files
authored
Update WipperSnapper_I2C_Driver_Out_Sh1107.h
1 parent 650a59b commit d2560fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Sh1107.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ class WipperSnapper_I2C_Driver_Out_SH1107
3333
public:
3434
/*******************************************************************************/
3535
/*!
36-
@brief Constructor for a SH1107 OLED display.
36+
@brief Constructor for a OLED display.
3737
@param i2c
3838
The I2C interface.
3939
@param sensorAddress
4040
7-bit device address.
4141
*/
4242
/*******************************************************************************/
43-
WipperSnapper_I2C_Driver_Out_SH1107(TwoWire *i2c, uint16_t sensorAddress)
43+
WipperSnapper_I2C_Driver_Out_(TwoWire *i2c, uint16_t sensorAddress)
4444
: WipperSnapper_I2C_Driver_Out(i2c, sensorAddress) {
4545
_i2c = i2c;
4646
_sensorAddress = sensorAddress;
@@ -55,7 +55,7 @@ class WipperSnapper_I2C_Driver_Out_SH1107
5555
if (_display != nullptr) {
5656
_display->clearDisplay();
5757
_display->display();
58-
_display->sh1107_command(SH1107_DISPLAYOFF);
58+
_display->sh1107_command(SH110X_DISPLAYOFF);
5959
delete _display;
6060
_display = nullptr;
6161
}
@@ -72,7 +72,7 @@ class WipperSnapper_I2C_Driver_Out_SH1107
7272
return false;
7373
// Configure the text size and color
7474
_display->setTextSize(_text_sz);
75-
_display->setTextColor(SH1107_WHITE);
75+
_display->setTextColor(SH110X_WHITE);
7676
// Use full 256 char 'Code Page 437' font
7777
_display->cp437(true);
7878
// Clear the buffer
@@ -111,7 +111,7 @@ class WipperSnapper_I2C_Driver_Out_SH1107
111111
int16_t y_idx = 0;
112112
_display->clearDisplay();
113113
_display->setTextSize(_text_sz);
114-
_display->setTextColor(SH1107_WHITE);
114+
_display->setTextColor(SH110X_WHITE);
115115
_display->setCursor(0, y_idx);
116116
_display->display();
117117

0 commit comments

Comments
 (0)