-
Notifications
You must be signed in to change notification settings - Fork 4
/
ili_lcd_general.h
executable file
·46 lines (39 loc) · 1.69 KB
/
ili_lcd_general.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
44
45
46
#ifndef ILI_LCD_GENERAL_H_INCLUDED
#define ILI_LCD_GENERAL_H_INCLUDED
/*
Compatible list:
ili9320 ili9325 ili9328
LG4531
*/
/* LCD color */
#define White 0xFFFF
#define Black 0x0000
#define Grey 0xF7DE
#define Blue 0x001F
#define Blue2 0x051F
#define Red 0xF800
#define Magenta 0xF81F
#define Green 0x07E0
#define Cyan 0x7FFF
#define Yellow 0xFFE0
/*---------------------- Graphic LCD size definitions ------------------------*/
#define LCD_WIDTH 240 /* Screen Width (in pixels) */
#define LCD_HEIGHT 320 /* Screen Hight (in pixels) */
#define BPP 16 /* Bits per pixel */
#define BYPP ((BPP+7)/8) /* Bytes per pixel */
extern void lcd_Initializtion(void);
extern unsigned int lcd_getdeviceid(void);
//#define _ILI_REVERSE_DIRECTION_
#include "rtthread.h"
#include <rtgui/rtgui.h>
#include <rtgui/driver.h>
#include <rtgui/rtgui_server.h>
#include <rtgui/rtgui_system.h>
//extern void rt_hw_lcd_update(rtgui_rect_t *rect);
//extern rt_uint8_t * rt_hw_lcd_get_framebuffer(void);
//extern void rt_hw_lcd_set_pixel(rtgui_color_t *c, rt_base_t x, rt_base_t y);
//extern void rt_hw_lcd_get_pixel(rtgui_color_t *c, rt_base_t x, rt_base_t y);
//extern void rt_hw_lcd_draw_hline(rtgui_color_t *c, rt_base_t x1, rt_base_t x2, rt_base_t y);
//extern void rt_hw_lcd_draw_vline(rtgui_color_t *c, rt_base_t x, rt_base_t y1, rt_base_t y2);
//extern void rt_hw_lcd_draw_raw_hline(rt_uint8_t *pixels, rt_base_t x1, rt_base_t x2, rt_base_t y);
#endif // ILI_LCD_GENERAL_H_INCLUDED