41 #define UTFT_VERSION 241
62 #define SSD1963_480 12
63 #define SSD1963_800 13
66 #define SSD1289LATCHED 16
70 #define SSD1963_800ALT 20
101 #define ELEE32_REVA 16
104 #define ELEE32_REVB 19
109 #define SERIAL_4PIN 4
110 #define SERIAL_5PIN 5
111 #define LATCHED_16 17
117 #define VGA_BLACK 0x0000
118 #define VGA_WHITE 0xFFFF
119 #define VGA_RED 0xF800
120 #define VGA_GREEN 0x0400
121 #define VGA_BLUE 0x001F
122 #define VGA_SILVER 0xC618
123 #define VGA_GRAY 0x8410
124 #define VGA_MAROON 0x8000
125 #define VGA_YELLOW 0xFFE0
126 #define VGA_OLIVE 0x8400
127 #define VGA_LIME 0x07E0
128 #define VGA_AQUA 0x07FF
129 #define VGA_TEAL 0x0410
130 #define VGA_NAVY 0x0010
131 #define VGA_FUCHSIA 0xF81F
132 #define VGA_PURPLE 0x8010
133 #define VGA_TRANSPARENT 0xFFFFFFFF
137 #include "hardware/avr/HW_AVR_defines.h"
138 #elif defined(__PIC32MX__)
139 #include "WProgram.h"
140 #include "hardware/pic32/HW_PIC32_defines.h"
141 #elif defined(__arm__)
143 #include "hardware/arm/HW_ARM_defines.h"
159 UTFT(
byte model,
int RS,
int WR,
int CS,
int RST,
int SER=0);
160 void InitLCD(
byte orientation=LANDSCAPE);
162 void drawPixel(
int x,
int y);
163 void drawLine(
int x1,
int y1,
int x2,
int y2);
164 void fillScr(
byte r,
byte g,
byte b);
165 void fillScr(word color);
166 void drawRect(
int x1,
int y1,
int x2,
int y2);
167 void drawRoundRect(
int x1,
int y1,
int x2,
int y2);
168 void fillRect(
int x1,
int y1,
int x2,
int y2);
169 void fillRoundRect(
int x1,
int y1,
int x2,
int y2);
170 void drawCircle(
int x,
int y,
int radius);
171 void fillCircle(
int x,
int y,
int radius);
172 void setColor(
byte r,
byte g,
byte b);
173 void setColor(word color);
175 void setBackColor(
byte r,
byte g,
byte b);
176 void setBackColor(uint32_t color);
178 void print(
char *st,
int x,
int y,
int deg=0);
179 void print(String st,
int x,
int y,
int deg=0);
180 void printNumI(
long num,
int x,
int y,
int length=0,
char filler=
' ');
181 void printNumF(
double num,
byte dec,
int x,
int y,
char divider=
'.',
int length=0,
char filler=
' ');
182 void setFont(uint8_t* font);
184 uint8_t getFontXsize();
185 uint8_t getFontYsize();
186 void drawBitmap(
int x,
int y,
int sx,
int sy, bitmapdatatype data,
int scale=1);
187 void drawBitmap(
int x,
int y,
int sx,
int sy, bitmapdatatype data,
int deg,
int rox,
int roy);
190 void setContrast(
char c);
191 int getDisplayXSize();
192 int getDisplayYSize();
202 byte fch, fcl, bch, bcl;
204 long disp_x_size, disp_y_size;
205 byte display_model, display_transfer_mode, display_serial_mode;
206 regtype *P_RS, *P_WR, *P_CS, *P_RST, *P_SDA, *P_SCL, *P_ALE;
207 regsize B_RS, B_WR, B_CS, B_RST, B_SDA, B_SCL, B_ALE;
209 boolean _transparent;
211 void LCD_Writ_Bus(
char VH,
char VL,
byte mode);
212 void LCD_Write_COM(
char VL);
213 void LCD_Write_DATA(
char VH,
char VL);
214 void LCD_Write_DATA(
char VL);
215 void LCD_Write_COM_DATA(
char com1,
int dat1);
216 void _hw_special_init();
217 void setPixel(word color);
218 void drawHLine(
int x,
int y,
int l);
219 void drawVLine(
int x,
int y,
int l);
220 void printChar(
byte c,
int x,
int y);
221 void setXY(word x1, word y1, word x2, word y2);
223 void rotateChar(
byte c,
int x,
int y,
int pos,
int deg);
224 void _set_direction_registers(
byte mode);
225 void _fast_fill_16(
int ch,
int cl,
long pix);
226 void _fast_fill_8(
int ch,
long pix);
227 void _convert_float(
char *buf,
double num,
int width,
byte prec);