2014-11-10 14:16:45 +00:00
|
|
|
#ifndef __UTFT_DISPLAY_H__
|
|
|
|
#define __UTFT_DISPLAY_H__
|
2014-10-19 15:06:05 +00:00
|
|
|
|
|
|
|
class Stream;
|
2014-11-13 14:10:11 +00:00
|
|
|
extern uint8_t SmallFont[];
|
2014-10-19 15:06:05 +00:00
|
|
|
|
2014-10-21 18:41:44 +00:00
|
|
|
class UTFTDisplay: public Memory::Device {
|
2014-10-19 15:06:05 +00:00
|
|
|
public:
|
2014-11-13 14:10:11 +00:00
|
|
|
void begin(unsigned bg, unsigned fg, uint8_t *font = SmallFont);
|
2014-10-19 15:06:05 +00:00
|
|
|
void clear();
|
|
|
|
void error(char *);
|
|
|
|
void status(const char *);
|
|
|
|
|
2014-10-20 18:19:02 +00:00
|
|
|
virtual void checkpoint(Stream &s) = 0;
|
|
|
|
virtual void restore(Stream &s) = 0;
|
|
|
|
|
2014-10-19 15:06:05 +00:00
|
|
|
protected:
|
|
|
|
UTFTDisplay(unsigned size): Memory::Device(size) {}
|
|
|
|
|
|
|
|
unsigned _bg, _fg, _cx, _cy, _dx, _dy, _oxs;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|