Skip to content

Commit 518eac9

Browse files
committed
add rotation to ConfigureSSD1306 func for SH1107
1 parent 6ab5a6f commit 518eac9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Sh1107.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,13 @@ class WipperSnapper_I2C_Driver_Out_SH1107
134134
The height of the display in pixels.
135135
@param text_size
136136
The magnification factor for the text size.
137+
@param rotation
138+
The rotation of the display in degrees, default is 0 (no rotation).
137139
*/
138-
void ConfigureSSD1306(uint8_t width, uint8_t height, uint8_t text_size) {
140+
void ConfigureSSD1306(uint8_t width, uint8_t height, uint8_t text_size,
141+
uint8_t rotation = 0) {
139142
// This is a SH1107, not a SSD1306, so we don't need to do anything here.
140-
ConfigureSH1107(width, height, text_size);
143+
ConfigureSH1107(width, height, text_size, rotation);
141144
}
142145

143146
/*!

0 commit comments

Comments
 (0)