|
21 | 21 | #include <Adafruit_SH110X.h> |
22 | 22 | #include <Arduino.h> |
23 | 23 |
|
24 | | -#define WS_SH1107_DEFAULT_WIDTH \ |
25 | | - 128 ///< Default width for a sh1107 128x64 display |
26 | | -#define WS_SH1107_DEFAULT_HEIGHT \ |
27 | | - 64 ///< Default height for a sh1107 128x64 display |
| 24 | +#define WS_SH1107_DEFAULT_WIDTH \ |
| 25 | + 128 ///< Default width for a sh1107 128x64 display |
| 26 | +#define WS_SH1107_DEFAULT_HEIGHT \ |
| 27 | + 64 ///< Default height for a sh1107 128x64 display |
28 | 28 |
|
29 | | -#define OLED_128X64_WING_WIDTH 128 ///< Width of the 128x64 OLED FeatherWing |
30 | | -#define OLED_128X64_WING_HEIGHT 64 ///< Height of the 128x64 OLED FeatherWing |
31 | | -#define OLED_128X64_WING_ROTATION_90 1 ///< Rotation of OLED FeatherWing 0-3 |
| 29 | +#define OLED_128X64_WING_WIDTH 128 ///< Width of the 128x64 OLED FeatherWing |
| 30 | +#define OLED_128X64_WING_HEIGHT 64 ///< Height of the 128x64 OLED FeatherWing |
| 31 | +#define OLED_128X64_WING_ROTATION_90 1 ///< Rotation of OLED FeatherWing 0-3 |
32 | 32 |
|
33 | 33 | /*! |
34 | 34 | @brief Class that provides a driver interface for a SH1107 |
@@ -84,7 +84,6 @@ class WipperSnapper_I2C_Driver_Out_SH1107 |
84 | 84 | if (!_display->begin(_sensorAddress, true)) |
85 | 85 | return false; |
86 | 86 |
|
87 | | - |
88 | 87 | // Clear the buffer. |
89 | 88 | _display->clearDisplay(); |
90 | 89 | _display->display(); |
@@ -117,7 +116,8 @@ class WipperSnapper_I2C_Driver_Out_SH1107 |
117 | 116 | _width = width; |
118 | 117 | _height = height; |
119 | 118 | _text_sz = text_size; |
120 | | - _rotation = rotation % 90; // SH1107 requires rotation to be 0-3, not degrees |
| 119 | + _rotation = |
| 120 | + rotation % 90; // SH1107 requires rotation to be 0-3, not degrees |
121 | 121 | } |
122 | 122 | /*! |
123 | 123 | @brief Configures a SSD1306 OLED display. Must be called before driver |
|
0 commit comments