@@ -33,14 +33,14 @@ class WipperSnapper_I2C_Driver_Out_SH1107
33
33
public:
34
34
/* ******************************************************************************/
35
35
/* !
36
- @brief Constructor for a SH1107 OLED display.
36
+ @brief Constructor for a OLED display.
37
37
@param i2c
38
38
The I2C interface.
39
39
@param sensorAddress
40
40
7-bit device address.
41
41
*/
42
42
/* ******************************************************************************/
43
- WipperSnapper_I2C_Driver_Out_SH1107 (TwoWire *i2c, uint16_t sensorAddress)
43
+ WipperSnapper_I2C_Driver_Out_ (TwoWire *i2c, uint16_t sensorAddress)
44
44
: WipperSnapper_I2C_Driver_Out(i2c, sensorAddress) {
45
45
_i2c = i2c;
46
46
_sensorAddress = sensorAddress;
@@ -55,7 +55,7 @@ class WipperSnapper_I2C_Driver_Out_SH1107
55
55
if (_display != nullptr ) {
56
56
_display->clearDisplay ();
57
57
_display->display ();
58
- _display->sh1107_command (SH1107_DISPLAYOFF );
58
+ _display->sh1107_command (SH110X_DISPLAYOFF );
59
59
delete _display;
60
60
_display = nullptr ;
61
61
}
@@ -72,7 +72,7 @@ class WipperSnapper_I2C_Driver_Out_SH1107
72
72
return false ;
73
73
// Configure the text size and color
74
74
_display->setTextSize (_text_sz);
75
- _display->setTextColor (SH1107_WHITE );
75
+ _display->setTextColor (SH110X_WHITE );
76
76
// Use full 256 char 'Code Page 437' font
77
77
_display->cp437 (true );
78
78
// Clear the buffer
@@ -111,7 +111,7 @@ class WipperSnapper_I2C_Driver_Out_SH1107
111
111
int16_t y_idx = 0 ;
112
112
_display->clearDisplay ();
113
113
_display->setTextSize (_text_sz);
114
- _display->setTextColor (SH1107_WHITE );
114
+ _display->setTextColor (SH110X_WHITE );
115
115
_display->setCursor (0 , y_idx);
116
116
_display->display ();
117
117
0 commit comments