diff --git a/src/cloud.cpp b/src/cloud.cpp index 1508bd7..2e3f686 100644 --- a/src/cloud.cpp +++ b/src/cloud.cpp @@ -257,4 +257,7 @@ void requestCloud() Serial.println(millis() - startMills); } } + + // clean up + http.end(); } \ No newline at end of file diff --git a/src/display.cpp b/src/display.cpp index 88ef84e..6655891 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -1,5 +1,6 @@ #include #include "display.h" +#include // mapping suggestion for ESP32, e.g. LOLIN32, see .../variants/.../pins_arduino.h for your board // NOTE: there are variants with different pins for SPI ! CHECK SPI PINS OF YOUR BOARD @@ -36,20 +37,17 @@ void displayWritePixel(int16_t x, int16_t y, uint16_t color) display.drawPixel(x, y, color); } - void displayWriteFramebuffer(uint8_t bitmap[]) { display.drawInvertedBitmap(0, 0, bitmap, display.epd2.WIDTH, display.epd2.HEIGHT, GxEPD_BLACK); } - void displayFlush() { Serial.println("displayFlush"); display.nextPage(); } - void printSplash() { const char Hello[] = "Hello Paperdash!";