character.h
来自「2440 ADS项目」· C头文件 代码 · 共 29 行
H
29 行
#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 + =
减小字号Ctrl + -
显示快捷键?