Skip to content

Commit 32d8cb1

Browse files
committed
Updated with code to support either I2C or SPI
1 parent f8dc2e0 commit 32d8cb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/SSD1306Demo/SSD1306Demo.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ See more at http://blog.squix.ch
4848
#define OLED_CS D8 // Chip select
4949

5050
// Uncomment one of the following based on OLED type
51-
SSD1306 display(true, OLED_RESET, OLED_DC, OLED_CS); // FOR SPI
52-
// SSD1306 display(OLED_ADDR, OLED_SDA, OLED_SDC); // For I2C
51+
// SSD1306 display(true, OLED_RESET, OLED_DC, OLED_CS); // FOR SPI
52+
SSD1306 display(OLED_ADDR, OLED_SDA, OLED_SDC); // For I2C
5353
SSD1306Ui ui ( &display );
5454

5555
// this array keeps function pointers to all frames

0 commit comments

Comments
 (0)