📄 display_string.c
字号:
//============================================
//filename :Display_string.c
//description :display_string(10, 100, "I am kaka!I am hacker!", black);
//
//author :kaka(sn.kaka@yahoo.com)
//date :20080702
//============================================
#include "Gui.h"
#include "lcdconf.h"
#include "test.h"
extern void ENTER_CRITICAL(void);
extern void EXIT_CRITICAL(void);
void display_string(int x, int y, char *p, int color)
{
#if NO_LCD >0
#else
int x_string=x,y_string=y;
ENTER_CRITICAL();
while(*p!='\0')
{
if (x_string>(LCD_XSIZE-8)) {x_string=0;y_string=y_string+14;}
display_char( x_string, y_string, *p, color);
x_string=x_string+8;
p++;
Current_X=x_string;
Current_Y=y_string;
}
EXIT_CRITICAL();
#endif
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -