Go to the source code of this file.
◆ __LCD_LL_FillScreen()
void __LCD_LL_FillScreen |
( |
u16 |
color | ) |
|
Definition at line 374 of file glcd_lowlevel.c.
375{
376
378 {
387 }
388 else
390
394}
_DECL_EXTERNALLY u16 LCDMaxY
_PRIVATE void set_gram_cursor(u16 x, u16 y)
Sets the GRAM cursor to the specified coordinates, for writing data into the appropriate pixel in the...
_PRIVATE void write_to(u16 reg, u16 data)
Writes a 16-bit value to the LCD controller, at the specified register.
_PRIVATE u8 s_model_code
The model code of the LCD controller.
_PRIVATE void init_rw_operation_at(u16 index)
Tells the LCD controller to initiate a R/W operation with the register at the index specified.
_DECL_EXTERNALLY u16 LCDMaxX
The maximum X and Y coordinates of the screen.
_PRIVATE void do_write(u16 data)
Writes an half-word (16 bits) into the LCD's DB port, destined to the register at the index selected ...
◆ __LCD_LL_GetPointColor()
Definition at line 334 of file glcd_lowlevel.c.
335{
337
340
342 {
350 return dummy;
354
358 dummy = (
u16)((red << 11) | (green << 5) | blue);
359 return dummy;
360 }
361 default:
364 return dummy;
365 }
366}
_PRIVATE u16 do_read(void)
Reads an half-word (16 bits) from the LCD's DB port, from the register at the index selected with the...
◆ __LCD_LL_Init()
void __LCD_LL_Init |
( |
u16 |
orientation | ) |
|
Definition at line 228 of file glcd_lowlevel.c.
229{
230
231
232 LPC_PINCON->PINSEL1 &= ~(0x03FFFFC0);
233
234
235
236 LPC_PINCON->PINSEL4 &= ~(0x0000FFFF);
237
238
239
240 LPC_GPIO0->FIODIR |= 0x03f80000;
241 LPC_GPIO0->FIOSET = 0x03f80000;
242
245 {
248 }
249 else
250 {
253 }
254
257 if (code == 0x9325 || code == 0x9328)
258 {
263
265 write_to(0x0003, (1 << 12) | (1 << 5) | (1 << 4) | (0 << 3));
273
274
287
292
324
325
329 }
330
332}
_PRIVATE u16 s_orientation
The current orientation of the screen.
_PRIVATE u16 read_from(u16 reg)
Reads an HW from the LCD controller, at the specified register.
◆ __LCD_LL_SetPointColor()
void __LCD_LL_SetPointColor |
( |
u16 |
rgb565, |
|
|
u16 |
x, |
|
|
u16 |
y |
|
) |
| |