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

📄 display_string.c

📁 一个小的嵌入式os
💻 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 + -