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

📄 tantou.c

📁 原代码驱动程序望广大朋友参考 不用浪费更多的时间.
💻 C
字号:
#include "config.h"

#include "hanzi.c"

/******************************************************************************/
void port_init(void)
{
	PORTA = 0x00;
	DDRA  = 0x00;
	PORTB = 0xFF;
	DDRB  = 0x1F;
	PORTC = 0x00; //m103 output only
	DDRC  = 0x00;
	PORTD = 0xff;
	DDRD  = 0x00;
}
/******************************************************************************/
void count_write(uchar x,uchar y,uchar count)
{
	lcd_print816(x,y,count_array[count >> 4]);
	lcd_print816(x,y+8,count_array[count & 0xf]);
}
/******************************************************************************/
int main(void)
{
	uchar i;
	port_init();
	lcd_init();
	for(i=0;i<8;i++)
	{
		lcd_print(i,0,0xfa);
	}
	count_write(0,5,0xfb); 
	count_write(2,5,0xfa);
	while(1);
}

⌨️ 快捷键说明

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