8x8 LED 矩阵显示
C代码:#includeunsigned char code taba[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};unsigned char code tabb[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};void delay(void){ unsigned char i,j;for(i=10;i>0;...
七段数码管显示四位数字
七段数码管显示四位数字的C代码:#include//#includeunsigned char a,b,c,d;unsigned char code dispbitcode[]={0x10,0x20,0x40,0x80,0x00};//共阴位码unsigned char code dispcode[]= { 0X3F,0X06,0X5B,0X4F,0X66,0...
七段数码管显示四位数字