Skip to content
Snippets Groups Projects
Commit 32d8cb15 authored by Neptune's avatar Neptune
Browse files

Updated with code to support either I2C or SPI

parent f8dc2e0f
No related branches found
No related tags found
No related merge requests found
......@@ -48,8 +48,8 @@ See more at http://blog.squix.ch
#define OLED_CS D8 // Chip select
// Uncomment one of the following based on OLED type
SSD1306 display(true, OLED_RESET, OLED_DC, OLED_CS); // FOR SPI
// SSD1306 display(OLED_ADDR, OLED_SDA, OLED_SDC); // For I2C
// SSD1306 display(true, OLED_RESET, OLED_DC, OLED_CS); // FOR SPI
SSD1306 display(OLED_ADDR, OLED_SDA, OLED_SDC); // For I2C
SSD1306Ui ui ( &display );
// this array keeps function pointers to all frames
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment