Merge pull request #16 from adavidzh/patch-2

Add delay to avoid resets
This commit is contained in:
Limor "Ladyada" Fried 2018-06-19 15:08:12 -07:00 committed by GitHub
commit 7097afb14a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,6 +128,9 @@ void testlines(uint16_t color) {
display.drawLine(display.width()-1, 0, 0, y, color); display.drawLine(display.width()-1, 0, 0, y, color);
} }
// To avoid ESP8266 watchdog timer resets when not using the hardware SPI pins
delay(0);
display.fillScreen(BLACK); display.fillScreen(BLACK);
for (int16_t x=0; x < display.width()-1; x+=6) { for (int16_t x=0; x < display.width()-1; x+=6) {
display.drawLine(0, display.height()-1, x, 0, color); display.drawLine(0, display.height()-1, x, 0, color);