Skip to content

Commit cf89132

Browse files
authored
Merge pull request #299 from mikeysklar/wait-for-display
wait for display
2 parents 03c96db + 75f9703 commit cf89132

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

examples/ssd1306_128x32_i2c/ssd1306_128x32_i2c.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ static const unsigned char PROGMEM logo_bmp[] =
6060
void setup() {
6161
Serial.begin(9600);
6262

63+
// Wait for display
64+
delay(500);
65+
6366
// SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
6467
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
6568
Serial.println(F("SSD1306 allocation failed"));

examples/ssd1306_128x64_i2c/ssd1306_128x64_i2c.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ static const unsigned char PROGMEM logo_bmp[] =
6060
void setup() {
6161
Serial.begin(9600);
6262

63+
// Wait for display
64+
delay(500);
65+
6366
// SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
6467
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
6568
Serial.println(F("SSD1306 allocation failed"));

examples/ssd1306_64x32_i2c/ssd1306_64x32_i2c.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ static const unsigned char PROGMEM logo_bmp[] =
6060
void setup() {
6161
Serial.begin(9600);
6262

63+
// Wait for display
64+
delay(500);
65+
6366
// SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
6467
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
6568
Serial.println(F("SSD1306 allocation failed"));

0 commit comments

Comments
 (0)