Skip to content

Commit 5cd7b1c

Browse files
authored
Update WipperSnapper_I2C_Driver_Out_Sh1107.h
1 parent d23c52e commit 5cd7b1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Sh1107.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#include <Adafruit_SH110X.h>
2323
#include <Arduino.h>
2424

25-
#define DEFAULT_WIDTH 64 ///< Default width for a sh1107 128x64 display
26-
#define DEFAULT_HEIGHT 128 ///< Default height for a sh1107 128x64 display
25+
#define DEFAULT_WIDTH 128 ///< Default width for a sh1107 128x64 display
26+
#define DEFAULT_HEIGHT 64 ///< Default height for a sh1107 128x64 display
2727

2828
/*!
2929
@brief Class that provides a driver interface for a SH1107
@@ -68,8 +68,8 @@ class WipperSnapper_I2C_Driver_Out_SH1107
6868
@returns True if initialized successfully, False otherwise.
6969
*/
7070
bool begin() {
71-
// Attempt to create and allocate a SH1107 obj.
72-
_display = new Adafruit_SH1107(_width, _height, _i2c);
71+
// Attempt to create and allocate a SH1107 obj, backwards w/h
72+
_display = new Adafruit_SH1107(_height, _width, _i2c);
7373
if (!_display->begin(_sensorAddress, true))
7474
return false;
7575

0 commit comments

Comments
 (0)