54 extern int TFT_Y; ///< Y position of the next character after TFT_print() function |
60 extern int TFT_Y; ///< Y position of the next character after TFT_print() function |
55 |
61 |
56 // ========================================================================================= |
62 // ========================================================================================= |
57 |
63 |
58 |
64 |
59 // Buffer is created during jpeg decode for sending data |
65 /** |
60 // Total size of the buffer is 2 * (JPG_IMAGE_LINE_BUF_SIZE * 3) |
66 * @brief rotational offset in degrees defining position of value 0 (-90 will put it at the top of circle) |
61 // The size must be multiple of 256 bytes !! |
67 * this can be changed with setAngleOffset function at runtime |
62 #define JPG_IMAGE_LINE_BUF_SIZE 512 |
68 */ |
63 |
|
64 // --- Constants for ellipse function --- |
|
65 #define TFT_ELLIPSE_UPPER_RIGHT 0x01 |
|
66 #define TFT_ELLIPSE_UPPER_LEFT 0x02 |
|
67 #define TFT_ELLIPSE_LOWER_LEFT 0x04 |
|
68 #define TFT_ELLIPSE_LOWER_RIGHT 0x08 |
|
69 |
|
70 // Constants for Arc function |
|
71 // number representing the maximum angle (e.g. if 100, then if you pass in start=0 and end=50, you get a half circle) |
|
72 // this can be changed with setArcParams function at runtime |
|
73 #define DEFAULT_ARC_ANGLE_MAX 360 |
|
74 // rotational offset in degrees defining position of value 0 (-90 will put it at the top of circle) |
|
75 // this can be changed with setAngleOffset function at runtime |
|
76 #define DEFAULT_ANGLE_OFFSET -90 |
69 #define DEFAULT_ANGLE_OFFSET -90 |
77 |
70 |
78 #define PI 3.14159265359 |
71 #define PI 3.14159265359 |
79 |
72 |
80 #define MIN_POLIGON_SIDES 3 |
|
81 #define MAX_POLIGON_SIDES 60 |
|
82 |
73 |
83 // === Color names constants === |
74 // === Color names constants === |
84 extern const color_t TFT_BLACK; |
75 extern const color_t TFT_BLACK; |
85 extern const color_t TFT_NAVY; |
76 extern const color_t TFT_NAVY; |
86 extern const color_t TFT_DARKGREEN; |
77 extern const color_t TFT_DARKGREEN; |
99 extern const color_t TFT_WHITE; |
90 extern const color_t TFT_WHITE; |
100 extern const color_t TFT_ORANGE; |
91 extern const color_t TFT_ORANGE; |
101 extern const color_t TFT_GREENYELLOW; |
92 extern const color_t TFT_GREENYELLOW; |
102 extern const color_t TFT_PINK; |
93 extern const color_t TFT_PINK; |
103 |
94 |
104 // === Color invert constants === |
|
105 #define INVERT_ON 1 |
|
106 #define INVERT_OFF 0 |
|
107 |
95 |
108 // === Special coordinates constants === |
96 // === Special coordinates constants === |
109 #define CENTER -9003 |
97 #define CENTER -9003 ///< Center X or Y |
110 #define RIGHT -9004 |
98 #define RIGHT -9004 ///< Right X |
111 #define BOTTOM -9004 |
99 #define BOTTOM -9004 ///< Bottom Y |
112 |
100 |
113 #define LASTX 7000 |
101 #define LASTX 7000 ///< At last X position |
114 #define LASTY 8000 |
102 #define LASTY 8000 ///< At last Y position |
115 |
103 |
116 // === Embedded fonts constants === |
104 // === Embedded fonts constants === |
117 #define DEFAULT_FONT 0 ///< 12 points 95 characters DejaVu font. |
105 #define DEFAULT_FONT 0 ///< 12 points 95 characters DejaVu font. |
118 #define DEJAVU18_FONT 1 ///< 18 points 95 characters DejaVuSans font. |
106 #define DEJAVU18_FONT 1 ///< 18 points 95 characters DejaVuSans font. |
119 #define DEJAVU24_FONT 2 ///< 24 points 95 characters DejaVu font. |
107 #define DEJAVU24_FONT 2 ///< 24 points 95 characters DejaVu font. |