File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
22
#include < Adafruit_SH110X.h>
23
23
#include < Arduino.h>
24
24
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
27
27
28
28
/* !
29
29
@brief Class that provides a driver interface for a SH1107
@@ -68,8 +68,8 @@ class WipperSnapper_I2C_Driver_Out_SH1107
68
68
@returns True if initialized successfully, False otherwise.
69
69
*/
70
70
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);
73
73
if (!_display->begin (_sensorAddress, true ))
74
74
return false ;
75
75
You can’t perform that action at this time.
0 commit comments