c程序时钟代码谁有答:sbit K1=P3^2;sbit K2=P3^3;sbit K3=P3^4;sbit K4=P3^5;uint count,min,hour,i,j=0;uint code tab1[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};uint code tab2[]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x78,0x00,0x10};uint code tab3[]={0xf...
c语言编程,如下图在加上2个开关和2个蜂鸣器,2个开关来决定不同的频率...答:include<reg51.h>sbit K01=P2^4;sbit K02=P2^5;sbit K03=P2^6;sbit K04=P2^7;unsigned char speed;unsigned char code tab[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff};void delay20(void){unsigned char i,j;for(i=0;i<100;i++)for(j=0;j<60;j++);}void de...
单片机:求大神!!!答:/***/ include <reg52.h> char i=0,f=0;//变量定义,f 用作标识符 char Led_A[5]={0xff,0x7e,0xbd,0xdb,0xe7};char LD[10]={0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff};//单个流动编码 /***
一个51单片机电子钟程序,求详细的解释啊急急急!!!答:include <AT89X51.H> unsigned char code dispcode[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x00}; //定义显示用的段码 unsigned char dispbitcode[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}; //定义显示用的位码...
求一份基于单片机的16×16点阵LED电子显示屏设计的Protues仿真图和源...答:代码 include<reg51.h> include <intrins.h> unsigned char code FONT16x16[3][32]={ { 0x12, 0x48, 0x12, 0x48, 0x13, 0xC8, 0x12, 0x48, 0x10, 0x08, 0x10, 0x08, 0x10, 0x28, 0x10, 0x10,0x08, 0x00, 0x08, 0x04, 0x0F, 0xFE, 0x10, 0x08, 0x10, 0x48, ...