Skip to content

Commit f5fd32f

Browse files
committed
Curb whitespace changes for diff
1 parent d4c41c3 commit f5fd32f

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

Adafruit_SSD1306.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -470,12 +470,12 @@ bool Adafruit_SSD1306::begin(uint8_t vcs, uint8_t addr, bool reset,
470470
if (WIDTH > 64 && HEIGHT > 32) {
471471
drawBitmap((WIDTH - splash1_width) / 2, (HEIGHT - splash1_height) / 2,
472472
splash1_data, splash1_width, splash1_height, 1);
473-
} else if(WIDTH > 64) {
473+
} else if (WIDTH > 64) {
474474
drawBitmap((WIDTH - splash2_width) / 2, (HEIGHT - splash2_height) / 2,
475475
splash2_data, splash2_width, splash2_height, 1);
476476
} else {
477477
drawBitmap((WIDTH - splash3_width) / 2, (HEIGHT - splash3_height) / 2,
478-
splash3_data, splash3_width, splash3_height, 1);
478+
splash3_data, splash3_width, splash3_height, 1);
479479
}
480480

481481
vccstate = vcs;
@@ -636,15 +636,15 @@ void Adafruit_SSD1306::drawPixel(int16_t x, int16_t y, uint16_t color) {
636636
}
637637
if ((WIDTH == 64) && (HEIGHT == 48)) x += 32;
638638
switch (color) {
639-
case SSD1306_WHITE:
640-
buffer[x + (y / 8) * SSD1306_SEGMENTS] |= (1 << (y & 7));
641-
break;
642-
case SSD1306_BLACK:
643-
buffer[x + (y / 8) * SSD1306_SEGMENTS] &= ~(1 << (y & 7));
644-
break;
645-
case SSD1306_INVERSE:
646-
buffer[x + (y / 8) * SSD1306_SEGMENTS] ^= (1 << (y & 7));
647-
break;
639+
case SSD1306_WHITE:
640+
buffer[x + (y / 8) * SSD1306_SEGMENTS] |= (1 << (y & 7));
641+
break;
642+
case SSD1306_BLACK:
643+
buffer[x + (y / 8) * SSD1306_SEGMENTS] &= ~(1 << (y & 7));
644+
break;
645+
case SSD1306_INVERSE:
646+
buffer[x + (y / 8) * SSD1306_SEGMENTS] ^= (1 << (y & 7));
647+
break;
648648
}
649649
}
650650
}
@@ -849,7 +849,7 @@ void Adafruit_SSD1306::drawFastVLineInternal(int16_t x, int16_t __y,
849849
// black/white write version with an extra comparison per loop
850850
do {
851851
*pBuf ^= 0xFF; // Invert byte
852-
pBuf += SSD1306_SEGMENTS; // Advance pointer 8 rows
852+
pBuf += SSD1306_SEGMENTS; // Advance pointer 8 rows
853853
h -= 8; // Subtract 8 rows from height
854854
} while (h >= 8);
855855
} else {
@@ -943,13 +943,13 @@ uint8_t *Adafruit_SSD1306::getBuffer(void) { return buffer; }
943943
void Adafruit_SSD1306::display(void) {
944944
TRANSACTION_START
945945
static const uint8_t PROGMEM dlist1[] = {
946-
SSD1306_PAGEADDR,
947-
0 }; // Page start address
946+
SSD1306_PAGEADDR,
947+
0 }; // Page start address
948948
ssd1306_commandList(dlist1, sizeof(dlist1));
949949
ssd1306_command1((HEIGHT + 7) / 8 - 1); // Page end address
950950
static const uint8_t PROGMEM dlist2[] = {
951-
SSD1306_COLUMNADDR,
952-
0 }; // Column start address
951+
SSD1306_COLUMNADDR,
952+
0 }; // Column start address
953953
ssd1306_commandList(dlist2, sizeof(dlist2));
954954
ssd1306_command1(SSD1306_SEGMENTS - 1); // Column end address
955955

Adafruit_SSD1306.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ class Adafruit_SSD1306 : public Adafruit_GFX {
158158
bool reset = true, bool periphBegin = true);
159159
void display(void);
160160
void clearDisplay(void);
161-
virtual void invertDisplay(bool i);
161+
void invertDisplay(bool i);
162162
void dim(bool dim);
163-
virtual void drawPixel(int16_t x, int16_t y, uint16_t color);
163+
void drawPixel(int16_t x, int16_t y, uint16_t color);
164164
virtual void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
165165
virtual void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
166166
void startscrollright(uint8_t start, uint8_t stop);

0 commit comments

Comments
 (0)