Skip to content

Commit e632bc6

Browse files
committed
clang format
1 parent 6513956 commit e632bc6

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

src/components/i2c/WipperSnapper_I2C.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,8 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
881881
}
882882
_drivers_out.push_back(_sevenSeg);
883883
WS_DEBUG_PRINTLN("7-Segement LED Matrix Initialized Successfully!");
884-
} else if (strcmp("oled128x64wdefault", msgDeviceInitReq->i2c_device_name) == 0 ||
884+
} else if (strcmp("oled128x64wdefault", msgDeviceInitReq->i2c_device_name) ==
885+
0 ||
885886
strcmp("oled128x64wlarge", msgDeviceInitReq->i2c_device_name) ==
886887
0) {
887888
WS_DEBUG_PRINTLN("SH1107 display detected!");
@@ -892,7 +893,7 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
892893
(uint8_t)msgDeviceInitReq->i2c_output_add.config.ssd1306_config.height,
893894
(uint8_t)
894895
msgDeviceInitReq->i2c_output_add.config.ssd1306_config.text_size,
895-
OLED_128X64_WING_ROTATION_90); // fixed as currently the only screen is
896+
OLED_128X64_WING_ROTATION_90); // fixed as currently the only screen is
896897
// 128x64wing (needs a rotation of 1 / 90degrees and constructor w/h swap).
897898
if (!_sh1107->begin()) {
898899
WS_DEBUG_PRINTLN("ERROR: Failed to initialize sh1107!");

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Sh1107.h

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

24-
#define WS_SH1107_DEFAULT_WIDTH 128 ///< Default width for a sh1107 128x64 display
25-
#define WS_SH1107_DEFAULT_HEIGHT 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
2628

2729
#define OLED_128X64_WING_WIDTH 128 ///< Width of the 128x64 OLED FeatherWing
2830
#define OLED_128X64_WING_HEIGHT 64 ///< Height of the 128x64 OLED FeatherWing
@@ -135,7 +137,7 @@ class WipperSnapper_I2C_Driver_Out_SH1107
135137
The rotation of the display in degrees, default is 0.
136138
*/
137139
void ConfigureSSD1306(uint8_t width, uint8_t height, uint8_t text_size,
138-
uint8_t rotation = 0) {
140+
uint8_t rotation) {
139141
// This is a SH1107, not a SSD1306, so we don't need to do anything here.
140142
ConfigureSH1107(width, height, text_size, rotation);
141143
}

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Ssd1306.h

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

23-
#define WS_SSD1306_DEFAULT_WIDTH 128 ///< Default width for a ssd1306 128x64 display
24-
#define WS_SSD1306_DEFAULT_HEIGHT 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
2527

2628
/*!
2729
@brief Class that provides a driver interface for a SSD1306

0 commit comments

Comments
 (0)