chinese.c

来自「2440 ADS项目」· C语言 代码 · 共 37 行

C
37
字号
#include "color.h"
#include "graphic.h"
#include "character.h"
#include "hzk16x16.h"
#include "ascii.h"

/*
 * display a Chinese character
 * x,y : coordinate of the start pixel
 * cnc_codes : the pointer of the character's encode in the font lib
 * the size of the Chinese characters is 16*16
 * color : the color of the character
 */
void display_cnc(unsigned int x, unsigned int y, unsigned char* cnc_codes, int color)
{
	
	
}

/*
 * display a string,the string can contain
 * onlyChinese characters
 *
 * x,y : the beginning coordinate of the string to be displayed
 * 0<=x<=39 : each line holds 40 chinese character (each character contain 16 pixels) horizontally
 * 0<=y<=19 : each line holds 20 chinese charcter (each character contain 16 pixels)  vertically
 *
 * so the whole LCD can display 40*20 chinese characters,
 * 
 * color : the color of the string 
 */
void display_string(unsigned int x, unsigned int y, char* str, int color)
{



}

⌨️ 快捷键说明

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