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

📄 character.h

📁 2440 ADS项目
💻 H
字号:
#ifndef _CHARACTER_H
#define _CHARACTER_H
/*
 * display an ascii character
 * x,y : coordinate of the start pixel
 * ascii_codes : the pointer of the character's encode in the font lib
 * the size of the ascii characters is 8*16
 * color : the color of the character
 */
void display_ascii(unsigned int x, unsigned int y, unsigned char* ascii_codes, int color);


/*
 * display a string,the string can contain
 * only ascii characters
 *
 * x,y : the beginning coordinate of the string to be displayed
 * 0<=x<=39 : each line holds 80 bytes (each byte contain 8 pixels) horizontally
 * 0<=y<=14 : each line holds 32 pixels vertically
 *
 * so the whole LCD can display 80*30 ascii characters,
 * 
 *
 * color : the color of the string 
 */
void display_string(unsigned int x, unsigned int y, char* str, int color);

#endif /* _CHARACTER_H */

⌨️ 快捷键说明

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