单片机C51 LED点阵显示驱动程序设计答:点阵原理就是一个LED的两端都接IO,当正极为1,负极为0时点亮相应的LED。下面是8×8的LED点阵程序,参考一下吧 include<reg51.h> define uchar unsigned char define uint unsigned int uchar code TAB[]={ 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0x00,0x82,0xFE,0x82,0x80,0xC0,...
设计一个用于51单片机的8x8的单色点阵LED驱动程序使,显示一个心形,在Pr...答:unsigned char code tabb[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};void delay1(void){ unsigned char i,j,k;for(k=8;k>0;k--)for(i=10;i>0;i--)for(j=15;j>0;j--);} main(){ unsigned int i;while(1){ for(i=0;i<8;i++){ P2=taba[i];P0=tabb[i];...