霍尔传感器测速
霍尔传感器测速,lcd显示#include//单片机内部专用寄存器定义
#defineucharunsignedchar
#defineuintunsignedint//数据类型的宏定义
ucharcodeLK[10]={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90,};//数码管0~9的字型码
ucharLK1[4]={0xfe,0xfd,0xfb,0xf7};//位选码
uintdataz,counter;//定义无符号整型全局变量
用户评论