51单片机数码管显示学号答:defineu16unsignedint defineNULL10 //段码数据0~9 u8codeDispchar[11]= { 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00 };//位码数据 u8codeDispbit[4]= { 0xef,0xdf,0xbf,0x7f };//学号 u8codeStudent_Id[18]= { NULL,NULL,NULL,NULL,//不显示 0,8,0,0,2...
51单片机数码管滚动显示答:include <reg52.h> define uchar unsigned char define uint unsigned int uchar code SEG_B_List[11]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xff};//共阳数码管代码表"0-9","空"define StuNumLeng 14 //学号长度,加了2个空格 uchar StuNum[StuNumLeng]={10,2...