new oled driver (experimental)

This commit is contained in:
Verkehrsrot committed 2019-09-27 12:47:00 +02:00
1 parent cb67e368ba
commit 0f9e2dfd63
21 files changed
+190 -222

No files matched your search

+1 -4
View File
@@ -1,16 +1,13 @@
#ifndef _DISPLAY_H
#define _DISPLAY_H
#include <U8x8lib.h>
#include "cyclic.h"
extern uint8_t DisplayIsOn;
extern HAS_DISPLAY u8x8;
void init_display(const char *Productname, const char *Version);
void refreshTheDisplay(bool nextPage = false);
void draw_page(time_t t, uint8_t page);
void DisplayKey(const uint8_t *key, uint8_t len, bool lsb);
void dp_printf(int x, int y, int font, int inv, const char *format, ...);
#endif
+3 -4
View File
@@ -4,6 +4,7 @@
#ifdef USE_OTA
#include "globals.h"
#include <ss_oled.h>
#include <Update.h>
#include <WiFi.h>
#include <WiFiClientSecure.h>
@@ -14,11 +15,9 @@
int do_ota_update();
void start_ota_update();
int version_compare(const String v1, const String v2);
void display(const uint8_t row, const std::string status,
const std::string msg);
#ifdef HAS_DISPLAY
void ota_display(const uint8_t row, const std::string status,
const std::string msg);
void show_progress(unsigned long current, unsigned long size);
#endif
#endif // USE_OTA