Skip to content

Commit c6dbb2b

Browse files
committed
clang format
1 parent 518eac9 commit c6dbb2b

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

src/components/i2c/WipperSnapper_I2C.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,8 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
893893
(uint8_t)msgDeviceInitReq->i2c_output_add.config.ssd1306_config.height,
894894
(uint8_t)
895895
msgDeviceInitReq->i2c_output_add.config.ssd1306_config.text_size,
896-
90); // fixed as currently the only screen is 128x64 featherwing which
897-
// needs a rotation of 1 / 90degrees, and constructor w/h swap.
896+
90); // fixed as currently the only screen is 128x64 featherwing which
897+
// needs a rotation of 1 / 90degrees, and constructor w/h swap.
898898
if (!_sh1107->begin()) {
899899
WS_DEBUG_PRINTLN("ERROR: Failed to initialize sh1107!");
900900
_busStatusResponse =
@@ -928,7 +928,7 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
928928
(uint8_t)msgDeviceInitReq->i2c_output_add.config.ssd1306_config.height,
929929
(uint8_t)
930930
msgDeviceInitReq->i2c_output_add.config.ssd1306_config.text_size,
931-
0); // TODO: add rotation to protobuf and IO UI for adapted max len
931+
0); // TODO: add rotation to protobuf and IO UI for adapted max len
932932
if (!_ssd1306->begin()) {
933933
WS_DEBUG_PRINTLN("ERROR: Failed to initialize ssd1306!");
934934
_busStatusResponse =

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class WipperSnapper_I2C_Driver_Out : public WipperSnapper_I2C_Driver {
6363
@param text_size
6464
The display's text size.
6565
@param rotation
66-
The rotation of the display in degrees, default is 0 (no rotation).
66+
The rotation of the display in degrees, default is 0.
6767
*/
6868
virtual void ConfigureSSD1306(uint8_t width, uint8_t height,
6969
uint8_t text_size, uint8_t rotation = 0) {

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Sh1107.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class WipperSnapper_I2C_Driver_Out_SH1107
8686
// Clear the buffer.
8787
_display->clearDisplay();
8888
_display->display();
89-
_display->setRotation(_rotation); // 0-3, not degrees for SH1107
89+
_display->setRotation(_rotation); // 0-3, not degrees for SH1107
9090

9191
// Configure the text size and color
9292
_display->setTextSize(_text_sz);
@@ -114,7 +114,7 @@ class WipperSnapper_I2C_Driver_Out_SH1107
114114
@param text_size
115115
The magnification factor for the text size.
116116
@param rotation
117-
The rotation of the display in degrees, default is 0 (no rotation).
117+
The rotation of the display in degrees, default is 0.
118118
*/
119119
void ConfigureSH1107(uint8_t width, uint8_t height, uint8_t text_size,
120120
uint8_t rotation) {
@@ -135,7 +135,7 @@ class WipperSnapper_I2C_Driver_Out_SH1107
135135
@param text_size
136136
The magnification factor for the text size.
137137
@param rotation
138-
The rotation of the display in degrees, default is 0 (no rotation).
138+
The rotation of the display in degrees, default is 0.
139139
*/
140140
void ConfigureSSD1306(uint8_t width, uint8_t height, uint8_t text_size,
141141
uint8_t rotation = 0) {
@@ -209,12 +209,12 @@ class WipperSnapper_I2C_Driver_Out_SH1107
209209
}
210210

211211
protected:
212-
Adafruit_SH1107 *_display =
213-
nullptr; ///< Pointer to the Adafruit_SH1107 object
214-
uint8_t _width; ///< Width of the display in pixels
215-
uint8_t _height; ///< Height of the display in pixels
216-
uint8_t _rotation; ///< Rotation of the display (0-3)
217-
uint8_t _text_sz; ///< Text size of the display
212+
Adafruit_SH1107 *_display =
213+
nullptr; ///< Pointer to the Adafruit_SH1107 object
214+
uint8_t _width; ///< Width of the display in pixels
215+
uint8_t _height; ///< Height of the display in pixels
216+
uint8_t _rotation; ///< Rotation of the display (0-3)
217+
uint8_t _text_sz; ///< Text size of the display
218218
};
219219

220220
#endif // WIPPERSNAPPER_I2C_DRIVER_OUT_SH1107_H

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Ssd1306.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ class WipperSnapper_I2C_Driver_Out_Ssd1306
9494
@param text_size
9595
The magnification factor for the text size.
9696
@param rotation
97-
The rotation of the display in degrees, default is 0 (no rotation).
97+
The rotation of the display in degrees, default is 0.
9898
*/
99-
void ConfigureSSD1306(uint8_t width, uint8_t height, uint8_t text_size,
99+
void ConfigureSSD1306(uint8_t width, uint8_t height, uint8_t text_size,
100100
uint8_t rotation = 0) {
101101
_width = width;
102102
_height = height;
@@ -160,12 +160,12 @@ class WipperSnapper_I2C_Driver_Out_Ssd1306
160160
}
161161

162162
protected:
163-
Adafruit_SSD1306 *_display =
164-
nullptr; ///< Pointer to the Adafruit_SSD1306 object
165-
uint8_t _width; ///< Width of the display in pixels
166-
uint8_t _height; ///< Height of the display in pixels
167-
uint8_t _rotation; ///< Rotation of the display in degrees
168-
uint8_t _text_sz; ///< Text size of the display
163+
Adafruit_SSD1306 *_display =
164+
nullptr; ///< Pointer to the Adafruit_SSD1306 object
165+
uint8_t _width; ///< Width of the display in pixels
166+
uint8_t _height; ///< Height of the display in pixels
167+
uint8_t _rotation; ///< Rotation of the display in degrees
168+
uint8_t _text_sz; ///< Text size of the display
169169
};
170170

171171
#endif // WIPPERSNAPPER_I2C_DRIVER_OUT_SSD1306_H

0 commit comments

Comments
 (0)