Skip to content

Commit dc8967e

Browse files
committed
Compile and fix syntax errors
1 parent f5fd32f commit dc8967e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Adafruit_SSD1306.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ bool Adafruit_SSD1306::begin(uint8_t vcs, uint8_t addr, bool reset,
541541
ssd1306_command1(HEIGHT - 1);
542542

543543
static const uint8_t PROGMEM init2[] = {SSD1306_SETDISPLAYOFFSET, // 0xD3
544-
0x0); // no offset
544+
0x0}; // no offset
545545
ssd1306_commandList(init2, sizeof(init2));
546546

547547
if ((WIDTH == 64) && (HEIGHT == 32)) {
@@ -550,7 +550,7 @@ bool Adafruit_SSD1306::begin(uint8_t vcs, uint8_t addr, bool reset,
550550
ssd1306_command1(SSD1306_SETSTARTLINE); // 0x40
551551
}
552552

553-
ssd1306_command1(SSD1306_CHARGEPUMP}; // 0x8D
553+
ssd1306_command1(SSD1306_CHARGEPUMP); // 0x8D
554554

555555
ssd1306_command1((vccstate == SSD1306_EXTERNALVCC) ? 0x10 : 0x14);
556556

@@ -574,7 +574,7 @@ bool Adafruit_SSD1306::begin(uint8_t vcs, uint8_t addr, bool reset,
574574
contrast = (vccstate == SSD1306_EXTERNALVCC) ? 0x10 : 0xAF;
575575
} else if ((WIDTH == 64) && ((HEIGHT == 48) || (HEIGHT == 32))) {
576576
comPins = 0x12;
577-
contrast = (vccstate == SSD1306_EXTERNALVCC) ? 0x9F : 0xCF);
577+
contrast = (vccstate == SSD1306_EXTERNALVCC) ? 0x9F : 0xCF;
578578
} else {
579579
// Other screen varieties -- TBD
580580
}

0 commit comments

Comments
 (0)