@@ -470,12 +470,12 @@ bool Adafruit_SSD1306::begin(uint8_t vcs, uint8_t addr, bool reset,
470
470
if (WIDTH > 64 && HEIGHT > 32 ) {
471
471
drawBitmap ((WIDTH - splash1_width) / 2 , (HEIGHT - splash1_height) / 2 ,
472
472
splash1_data, splash1_width, splash1_height, 1 );
473
- } else if (WIDTH > 64 ) {
473
+ } else if (WIDTH > 64 ) {
474
474
drawBitmap ((WIDTH - splash2_width) / 2 , (HEIGHT - splash2_height) / 2 ,
475
475
splash2_data, splash2_width, splash2_height, 1 );
476
476
} else {
477
477
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 );
479
479
}
480
480
481
481
vccstate = vcs;
@@ -636,15 +636,15 @@ void Adafruit_SSD1306::drawPixel(int16_t x, int16_t y, uint16_t color) {
636
636
}
637
637
if ((WIDTH == 64 ) && (HEIGHT == 48 )) x += 32 ;
638
638
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 ;
648
648
}
649
649
}
650
650
}
@@ -849,7 +849,7 @@ void Adafruit_SSD1306::drawFastVLineInternal(int16_t x, int16_t __y,
849
849
// black/white write version with an extra comparison per loop
850
850
do {
851
851
*pBuf ^= 0xFF ; // Invert byte
852
- pBuf += SSD1306_SEGMENTS; // Advance pointer 8 rows
852
+ pBuf += SSD1306_SEGMENTS; // Advance pointer 8 rows
853
853
h -= 8 ; // Subtract 8 rows from height
854
854
} while (h >= 8 );
855
855
} else {
@@ -943,13 +943,13 @@ uint8_t *Adafruit_SSD1306::getBuffer(void) { return buffer; }
943
943
void Adafruit_SSD1306::display (void ) {
944
944
TRANSACTION_START
945
945
static const uint8_t PROGMEM dlist1[] = {
946
- SSD1306_PAGEADDR,
947
- 0 }; // Page start address
946
+ SSD1306_PAGEADDR,
947
+ 0 }; // Page start address
948
948
ssd1306_commandList (dlist1, sizeof (dlist1));
949
949
ssd1306_command1 ((HEIGHT + 7 ) / 8 - 1 ); // Page end address
950
950
static const uint8_t PROGMEM dlist2[] = {
951
- SSD1306_COLUMNADDR,
952
- 0 }; // Column start address
951
+ SSD1306_COLUMNADDR,
952
+ 0 }; // Column start address
953
953
ssd1306_commandList (dlist2, sizeof (dlist2));
954
954
ssd1306_command1 (SSD1306_SEGMENTS - 1 ); // Column end address
955
955
0 commit comments