forked from dirkx/makerspaceleiden-payment-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.h
28 lines (19 loc) · 800 Bytes
/
display.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _H_DISPLAY_TFT
#define _H_DISPLAY_TFT
#include "global.h"
#include "pins_tft177.h" // 1.77" boards
// #include "pins_ttgo.h" // TTGO unit with own buttons; no LEDs.
// undef if you do not want the screensaver
#define SCREENSAVER_TIMEOUT (15 * 60 * 1000 /* 15 mins */)
void setupTFT();
void updateDisplay(state_t md);
void updateDisplay_startProgressBar(const char *str);
void updateDisplay_progressBar(float p);
void updateDisplay_progressText(const char * str);
void displayForceShowErrorModal(const char * str, const char * substr);
void displayForceShowModal(const char * str, const char * substr);
void displayForceShow(const char * str, const char * substr);
void updateDisplay_warningText(const char * str);
void updateClock(bool force);
void setTFTPower(bool onoff);
#endif