2014-11-10 14:16:45 +00:00
|
|
|
#ifndef __UTFT_DISPLAY_H__
|
|
|
|
#define __UTFT_DISPLAY_H__
|
2014-10-19 15:06:05 +00:00
|
|
|
|
2014-12-01 08:42:24 +00:00
|
|
|
typedef enum {
|
|
|
|
portrait, landscape
|
|
|
|
} orientation_t;
|
2014-11-30 21:17:08 +00:00
|
|
|
|
2014-11-17 15:08:43 +00:00
|
|
|
class UTFTDisplay {
|
2014-10-19 15:06:05 +00:00
|
|
|
public:
|
2014-12-01 08:42:24 +00:00
|
|
|
void begin(unsigned bg, unsigned fg, orientation_t o = landscape);
|
2014-10-19 15:06:05 +00:00
|
|
|
void clear();
|
|
|
|
void error(char *);
|
|
|
|
void status(const char *);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
unsigned _bg, _fg, _cx, _cy, _dx, _dy, _oxs;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|