1、这是一个单片机驱动 16*16 点阵的程序,有兴趣的同学们可以看一下,下一个要做的是智能小车,想做的同学,联系我。要求有一定的单片机基础,还要有一点投资。将来大家要是学习了单片机,可以看一下这个程序会显示什么?电原理图是这样的,P0 口和 P1 口分别连接 116 行,P2 和 P3 分别连接 116 列。#include“reg52.h“/*字形码:DB F8H 1FH 48H 02H 48H 02H F8H 1FH 00H 00H F8H 1FH 48H 02H 48H 02H;DB F8H 1FH 00H 00H F8H 17H 08H 14H 2CH 14H AAH 54H 09H 9
2、5H F8H FDH;“未命名文件“,0DB 00H 00H 00H 00H 82H 00H 82H 00H 82H 00H BAH 0EH AAH 0AH AAH 0AH;DB AAH 0AH BAH 2EH 82H 40H FEH 7FH 82H 00H 82H 00H 00H 00H 00H 00H;“未命名文件“,0DB 00H 20H F8H 1FH 08H 00H 48H 42H C8H 2FH 48H 12H 48H 2FH 48H 42H;DB 1FH 00H E8H 10H 08H 0BH 0AH 04H 0AH 1AH 00H 61H 00H 40H 00H 20H;“未命
3、名文件“,0DB 10H 00H 10H 40H 14H 7EH 14H 20H D4H 3FH 10H 11H 10H 09H 10H 05H;DB 10H 00H FFH 41H 10H 22H 10H 14H 14H 08H 14H 14H 10H 22H 10H 10H;“未命名文件“,0*/unsigned char timenum=0;unsigned char nm=1;unsigned char *pword;unsigned char code peng432=0xf8,0x1f,0x48,0x02,0x48,0x02,0xf8,0x1f,0x00,0x00,0xf8,0x1
4、f,0x48,0x02,0x48,0x02,0xf8,0x1f,0x00,0x00,0xf8,0x17,0x08,0x14,0x2c,0x14,0xaa,0x54,0x09,0x95,0xf8,0xfd,0x00,0x00,0x00,0x00,0x82,0x00,0x82,0x00,0x82,0x00,0xba,0x0e,0xaa,0x0a,0xaa,0x0a,0xaa,0x0a,0xba,0x2e,0x82,0x40,0xfe,0x7f,0x82,0x00,0x82,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0xf8,0x1f,0x08,0x00,0x48,0x4
5、2,0xc8,0x2f,0x48,0x12,0x48,0x2f,0x48,0x42,0x1f,0x00,0xe8,0x10,0x08,0x0b,0x0a,0x04,0x0a,0x1a,0x00,0x61,0x00,0x40,0x00,0x20,0x10,0x00,0x10,0x40,0x14,0x7e,0x14,0x20,0xd4,0x3f,0x10,0x11,0x10,0x09,0x10,0x05,0x10,0x00,0xff,0x01,0x10,0x02,0x10,0x04,0x14,0x08,0x10,0x10,0x10,0x20,0x10,0x10,;void delayms(unsi
6、gned int i)unsigned int j;while(i-)for(j=0;j8);delayms(1);num=num*2;void main()EA=1;ET0=1;TMOD=0X01;TH0=(65536-50000)/256;TL0=(65536-50000)%256;pword=peng0;TR0=1;while(1)ledshow(pword);void time0() interrupt 1TH0=(65536-50000)/256;TL0=(65536-50000)%256;timenum+;if(timenum=20)timenum=0;pword=pengnm; nm+;if(nm=4)nm=0;