Skip to content

Commit 58bd3f3

Browse files
author
Clang Robot
committed
Committing clang-format changes
1 parent 32868c0 commit 58bd3f3

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/boards/Inkplate4.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ bool Inkplate::begin()
5656

5757
// Init TwoWire and GPIO expander
5858
setIOExpanderForLowPower();
59-
59+
6060
// Set the default text color
6161
setTextColor(INKPLATE_BLACK);
6262

@@ -323,7 +323,7 @@ bool Inkplate::waitForEpd(uint16_t _timeout)
323323

324324
void Graphics::writePixel(int16_t x0, int16_t y0, uint16_t _color)
325325
{
326-
if (x0 > width() - 1 || y0 > height() - 1|| x0 < 0 || y0 < 0)
326+
if (x0 > width() - 1 || y0 > height() - 1 || x0 < 0 || y0 < 0)
327327
return;
328328

329329
if (_color > 2)

src/boards/Inkplate4.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
#define BUSY_TIMEOUT_MS 1000
3030

3131
// ePaper specific defines
32-
#define E_INK_HEIGHT 300
33-
#define E_INK_WIDTH 400
34-
#define INKPLATE_WHITE 0b00000000
35-
#define INKPLATE_BLACK 0b00000001
36-
#define INKPLATE_RED 0b00000010
32+
#define E_INK_HEIGHT 300
33+
#define E_INK_WIDTH 400
34+
#define INKPLATE_WHITE 0b00000000
35+
#define INKPLATE_BLACK 0b00000001
36+
#define INKPLATE_RED 0b00000010
3737

3838
// Pin on the internal io expander which controls MOSFET for turning on and off the SD card
3939
#define SD_PMOS_PIN IO_PIN_B2 // 10

src/include/Pcal.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
***************************************************/
1818

1919
#if defined(ARDUINO_INKPLATE10V2) || defined(ARDUINO_INKPLATE6V2) || defined(ARDUINO_INKPLATE6PLUSV2) || \
20-
defined(ARDUINO_INKPLATECOLOR) || defined(ARDUINO_INKPLATECOOL) || defined(ARDUINO_INKPLATE5) || defined(ARDUINO_INKPLATE4)
20+
defined(ARDUINO_INKPLATECOLOR) || defined(ARDUINO_INKPLATECOOL) || defined(ARDUINO_INKPLATE5) || \
21+
defined(ARDUINO_INKPLATE4)
2122

2223
#include "Pcal.h"
2324

0 commit comments

Comments
 (0)