lcd_gui.h

来自「内容包含了所有2410的测试程序,比如串口,时钟,IIC,ADC等」· C头文件 代码 · 共 29 行

H
29
字号
#ifndef __LCD_GUI_H__
#define __LCD_GUI_H__
/*
 * while write datas to LCD frame buffer, LCD will display them.
 * a pixel of the LCD is mapped to a bits block in the frame buffer
 * a pixel holds 12 bits in the frame buffer ( color LCD ):
 *  R - 5 bits ( 16-12 )
 *  G - 6 bits ( 11-6 )
 *  B - 6 bits ( 5-0 )
 */
void Lcd_Port_Init(void);
void Lcd_Init(void);
void PutPixel(U32 x,U32 y,U16 c);
void Lcd_ClearScr( U16 c);
void draw_vline(int x, int y1, int y2, U16 color);
void draw_hline(int x1, int x2, int y, U16 color);
void draw_rectangle(int start_x,int start_y,int end_x,int end_y,U16 color);
void draw_full_rectangle(int start_x, int start_y, int end_x, int end_y, U16 color);
void display_string(unsigned int x, unsigned int y, char* str,int count,U16 color);
void draw_circle(int x, int y, int r, U16 color);
void Paint_Bmp(int x0, int y0, int h, int l, unsigned char bmp[]);
void display_cn(signed int x, unsigned int y, char* str,U16 color);
void display_char(signed int x, unsigned int y, char str,U16 color);
void Lcd_GetXY_Color(U32 x,U32 y,unsigned short * c);

#endif


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?