Skip to content

Commit 4dc9d72

Browse files
committed
Explicitly select pin constructor for SSD1306 display
1 parent d4fc0d2 commit 4dc9d72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/PlatformIO/TextDisplay/src/TextDisplay.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ const char* password = "...";
3737
#define OLED_DC 0
3838
#define OLED_CS 13
3939
#define OLED_RESET 15
40-
Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
40+
Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, (int8_t)OLED_DC, OLED_RESET, OLED_CS);
4141

4242
/* Uncomment this block to use hardware SPI
4343
#define OLED_DC 6
4444
#define OLED_CS 7
4545
#define OLED_RESET 8
46-
Adafruit_SSD1306 display(OLED_DC, OLED_RESET, OLED_CS);
46+
Adafruit_SSD1306 display(OLED_DC, OLED_RESET, (int8_t)OLED_CS);
4747
*/
4848

4949
const int textHeight = 8;

examples/TextDisplay/TextDisplay.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ const char* password = "...";
3737
#define OLED_DC 0
3838
#define OLED_CS 13
3939
#define OLED_RESET 15
40-
Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
40+
Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, (int8_t)OLED_DC, OLED_RESET, OLED_CS);
4141

4242
/* Uncomment this block to use hardware SPI
4343
#define OLED_DC 6
4444
#define OLED_CS 7
4545
#define OLED_RESET 8
46-
Adafruit_SSD1306 display(OLED_DC, OLED_RESET, OLED_CS);
46+
Adafruit_SSD1306 display(OLED_DC, OLED_RESET, (int8_t)OLED_CS);
4747
*/
4848

4949
const int textHeight = 8;

0 commit comments

Comments
 (0)