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 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
You can’t perform that action at this time.
0 commit comments