风淋室单片机主程序汇总
前面我们了解了风淋室软件系统是如何设计的,现在就再深入一步,探讨风淋室单片机的主程序。
#include
#include”isd1720.h”
#define uint unsigned int
#define uchar unsigned char
sbit dula=P0;
sbit a=P2^6;
sbit b=P2^7;
sbit fs=P2^5;//风扇
sbit mc=P2^0;//脉冲输出
sbit fx=P2^1;//电机方向
sbit key=P3^5;//按键
sbit tc=P3^6; //探测
uchar shi,ge;
uchar time=15,number=3;
uint t;
uchar code table[]={
0x3f,0x06,0x5b,0x4f,
0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71};
//风淋室开关门子程序
void men(void)
{
uchar num;