@@ -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; }
943943void 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
0 commit comments