minor code improvements

pull/1/head
Thomas Ballmann 4 years ago
parent 4a7fc140ae
commit 9c18b819f1

@ -257,4 +257,7 @@ void requestCloud()
Serial.println(millis() - startMills); Serial.println(millis() - startMills);
} }
} }
// clean up
http.end();
} }

@ -1,5 +1,6 @@
#include <Arduino.h> #include <Arduino.h>
#include "display.h" #include "display.h"
#include <SPIFFS.h>
// mapping suggestion for ESP32, e.g. LOLIN32, see .../variants/.../pins_arduino.h for your board // 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 // 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); display.drawPixel(x, y, color);
} }
void displayWriteFramebuffer(uint8_t bitmap[]) void displayWriteFramebuffer(uint8_t bitmap[])
{ {
display.drawInvertedBitmap(0, 0, bitmap, display.epd2.WIDTH, display.epd2.HEIGHT, GxEPD_BLACK); display.drawInvertedBitmap(0, 0, bitmap, display.epd2.WIDTH, display.epd2.HEIGHT, GxEPD_BLACK);
} }
void displayFlush() void displayFlush()
{ {
Serial.println("displayFlush"); Serial.println("displayFlush");
display.nextPage(); display.nextPage();
} }
void printSplash() void printSplash()
{ {
const char Hello[] = "Hello Paperdash!"; const char Hello[] = "Hello Paperdash!";

Loading…
Cancel
Save