21 #define SPLASH_SCREEN 0
23 #define CALIBRATION_SCREEN 2
25 #ifndef _BASICDISPLAY_H
26 #define _BASICDISPLAY_H
44 bool main_screen(
bool force =
false);
45 bool display_signal(
bool force =
false);
48 bool showStatus(
bool force =
false);
51 bool _splash_displayed;
54 uint16_t sizetoFitSpace(
const char *
string, uint16_t maxwidth);
55 void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t color);
56 void drawRect(int16_t x, int16_t y, int16_t width, int16_t height, int16_t color);
57 void fillRect(int16_t x, int16_t y, int16_t width, int16_t height, int16_t color);
58 void setTextFont(uint8_t font);
59 void drawString(
const char *
string, int32_t poX, int32_t poY, int16_t color);
60 void drawXbm(int16_t x, int16_t y, int16_t width, int16_t height, int16_t color,
const uint8_t *xbm);
61 void drawXbm(int16_t x, int16_t y, int16_t width, int16_t height, uint16_t fgcolor, uint16_t bgcolor,
const uint8_t *xbm);
62 uint16_t getStringWidth(
const char* text);
69 #endif //_BASICDISPLAY_H