⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tft_disp.h

📁 一款收款机C源代码!因为是几年前的代码了
💻 H
字号:
#ifndef _TFT_DISP_H
#define _TFT_DISP_H

void Init_TFT(void);
void Lcd_Screen_Clr(byte color);
void Lcd_Draw_Btn_Edge(int x0, int y0, int x1, int y1,byte active);
void Lcd_Draw_Button(BUTTON_DEF Btn);



void TFT_Clear(char	color); //color: 背景色
byte Chk_Line(char *src, byte src_len, byte max_len);
void TFT_Lcd_Disp_Text(char *text, byte len, byte font, byte size, byte effect, byte c, int x0, int y0);
void Lcd_Draw_Circle(int xc, int yc, int radius, unsigned char c);
void Lcd_Draw_Circle_Fill(int x0, int y0, int r, unsigned char c);
void Lcd_Draw_Rect_Fill(int x1, int y1, int x2, int y2, unsigned char c);
void Lcd_Draw_Rect_EMP(int x1, int y1, int x2, int y2, unsigned char c);
void TFT_LCD_Disp_LOGO(const char *Logo, byte color, int hor, int vrt, int x0, int y0);
void Lcd_Draw_Line(int x1,int y1,int x2,int y2, unsigned char c);
void Lcd_Draw_HLine(int x0, int y, int x1, byte c);
#define Lcd_Draw_VLine(x, y0, y1, c)   Lcd_Draw_Line(x, y0, x, y1, c)
void Lcd_Clr_Text_Btn(byte Btn_ID, byte Rev);
void Lcd_Disp_Text_btn(byte Btn_ID, char *str, byte len, byte Line_len, byte font, byte Align);
void Lcd_Draw_Button_Ex(BUTTON_DEF Btn, char *str, byte lenth, byte align);
void Lcd_Cvt_Btn_Text(char *text, byte Max_Len,byte BOLD, byte color, int x0, int y0, int x1, int y1);

#define textmem(text, len, font, size, effect, c, x0, y0)   \
		TFT_Lcd_Disp_Text(text, len, font, size, effect, c, x0, y0)
#define text(text, font, size, effect, c, x0, y0)           \
		textmem(text, strlen(text), font, size, effect, c, x0, y0)



#endif

⌨️ 快捷键说明

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