Skip to content

Commit 1e31384

Browse files
committed
clang format again
1 parent e0d9da4 commit 1e31384

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/components/i2c/WipperSnapper_I2C.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,8 +883,8 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
883883
WS_DEBUG_PRINTLN("7-Segement LED Matrix Initialized Successfully!");
884884
} else if (strcmp("fthrwingoled128x64", msgDeviceInitReq->i2c_device_name) ==
885885
0 ||
886-
strcmp("fthrwingoled128x64lg", msgDeviceInitReq->i2c_device_name) ==
887-
0) {
886+
strcmp("fthrwingoled128x64lg",
887+
msgDeviceInitReq->i2c_device_name) == 0) {
888888
WS_DEBUG_PRINTLN("SH1107 display detected!");
889889
_sh1107 = new WipperSnapper_I2C_Driver_Out_SH1107(this->_i2c, i2cAddress);
890890
WS_DEBUG_PRINTLN("Configuring SH1107 display...");

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Sh1107.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
#include <Adafruit_SH110X.h>
2222
#include <Arduino.h>
2323

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
2828

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
3232

3333
/*!
3434
@brief Class that provides a driver interface for a SH1107
@@ -84,7 +84,6 @@ class WipperSnapper_I2C_Driver_Out_SH1107
8484
if (!_display->begin(_sensorAddress, true))
8585
return false;
8686

87-
8887
// Clear the buffer.
8988
_display->clearDisplay();
9089
_display->display();
@@ -117,7 +116,8 @@ class WipperSnapper_I2C_Driver_Out_SH1107
117116
_width = width;
118117
_height = height;
119118
_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
121121
}
122122
/*!
123123
@brief Configures a SSD1306 OLED display. Must be called before driver

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Ssd1306.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
#include <Adafruit_SSD1306.h>
2121
#include <Arduino.h>
2222

23-
#define WS_SSD1306_DEFAULT_WIDTH \
24-
128 ///< Default width for a ssd1306 128x64 display
25-
#define WS_SSD1306_DEFAULT_HEIGHT \
26-
64 ///< Default height for a ssd1306 128x64 display
23+
#define WS_SSD1306_DEFAULT_WIDTH \
24+
128 ///< Default width for a ssd1306 128x64 display
25+
#define WS_SSD1306_DEFAULT_HEIGHT \
26+
64 ///< Default height for a ssd1306 128x64 display
2727

2828
/*!
2929
@brief Class that provides a driver interface for a SSD1306

0 commit comments

Comments
 (0)