Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
ui_base.h
Go to the documentation of this file.
1#ifndef _UI_BASE__H_
2#define _UI_BASE__H_
3
5
15
17{
18public:
19
20void display_grid(GxEPD2_GFX& display);
21
22void display_text_center(GxEPD2_GFX& display, int16_t x, int16_t y, const char *string, int16_t w = 0, int16_t h = 0, const GFXfont *font = &PAPERDINK_FONT_SML, uint16_t color = GxEPD_BLACK, uint8_t size = 1);
23
24
25uint16_t read16(File& f);
26uint32_t read32(File& f);
27void display_bitmap_fs(GxEPD2_GFX& display, fs::FS &fs, const char *filename, int16_t x, int16_t y, bool with_color);
28};
29
31#endif /* _UI_BASE__H_ */
#define GxEPD_BLACK
Definition GxEPD2.h:19
#define GxEPD_WHITE
Definition GxEPD2.h:20
const GFXfont * font
Definition ui_base.h:9
const GFXfont * font_bold
Definition ui_base.h:10
void display_grid(GxEPD2_GFX &display)
Definition ui_base.cpp:3
uint16_t read16(File &f)
Definition ui_base.cpp:48
void display_text_center(GxEPD2_GFX &display, int16_t x, int16_t y, const char *string, int16_t w=0, int16_t h=0, const GFXfont *font=&PAPERDINK_FONT_SML, uint16_t color=GxEPD_BLACK, uint8_t size=1)
Definition ui_base.cpp:21
void display_bitmap_fs(GxEPD2_GFX &display, fs::FS &fs, const char *filename, int16_t x, int16_t y, bool with_color)
Definition ui_base.cpp:70
uint32_t read32(File &f)
Definition ui_base.cpp:58
#define PAPERDINK_FONT_SML_BOLD
Definition fonts.h:18
#define PAPERDINK_FONT_SML
Definition fonts.h:17
PaperdinkUIClass Paperdink_UI
Definition ui_base.cpp:219