-
Notifications
You must be signed in to change notification settings - Fork 0
/
myTFT.h
43 lines (31 loc) · 1.18 KB
/
myTFT.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef __myTFT_h_
#define __myTFT_h_
#include <LCDWIKI_GUI.h> // my modified Core graphics library
#include <LCDWIKI_KBV.h> // my modified Hardware-specific library
#include <font_Arial.h>
#include <font_ArialBold.h>
#define TFT_WIDTH 480
#define TFT_HEIGHT 320
#define TFT_RGB_COLOR(r,g,b) ((((r) & 0xF8) << 8) | (((g) & 0xFC) << 3) | ((b) >> 3))
#define TFT_BLACK 0x0000
#define TFT_BLUE 0x001F
#define TFT_RED 0xF800
#define TFT_GREEN 0x07E0
#define TFT_CYAN 0x07FF
#define TFT_MAGENTA 0xF81F
#define TFT_YELLOW 0xFFE0
#define TFT_WHITE 0xFFFF
#define TFT_NAVY 0x000F
#define TFT_DARKGREEN 0x03E0
#define TFT_DARKCYAN 0x03EF
#define TFT_MAROON 0x7800
#define TFT_PURPLE 0x780F
#define TFT_OLIVE 0x7BE0
#define TFT_LIGHTGREY 0xC618
#define TFT_DARKGREY 0x7BEF
#define TFT_ORANGE 0xFD20
#define TFT_GREENYELLOW 0xAFE5
#define TFT_PINK 0xF81F
extern LCDWIKI_KBV mylcd;
extern void initMyTFT();
#endif