mirror of
https://github.com/jscrane/r65emu.git
synced 2025-01-09 11:31:17 +00:00
enum for orientation
This commit is contained in:
parent
f47148382b
commit
101701f7b3
@ -6,7 +6,7 @@
|
||||
|
||||
extern UTFT utft;
|
||||
|
||||
void UTFTDisplay::begin(unsigned bg, unsigned fg, int orient) {
|
||||
void UTFTDisplay::begin(unsigned bg, unsigned fg, orientation_t orient) {
|
||||
_bg = bg;
|
||||
_fg = fg;
|
||||
utft.InitLCD(orient);
|
||||
|
@ -1,12 +1,13 @@
|
||||
#ifndef __UTFT_DISPLAY_H__
|
||||
#define __UTFT_DISPLAY_H__
|
||||
|
||||
#define PORTRAIT 0
|
||||
#define LANDSCAPE 1
|
||||
typedef enum {
|
||||
portrait, landscape
|
||||
} orientation_t;
|
||||
|
||||
class UTFTDisplay {
|
||||
public:
|
||||
void begin(unsigned bg, unsigned fg, int orient = LANDSCAPE);
|
||||
void begin(unsigned bg, unsigned fg, orientation_t o = landscape);
|
||||
void clear();
|
||||
void error(char *);
|
||||
void status(const char *);
|
||||
|
Loading…
Reference in New Issue
Block a user