国产精品综合一区二区_可以免费看的毛片_久久久综合精品_毛片av在线_国产1区在线_欧美日韩免费看

    行業資訊您現在所在的位置: 首頁 > 行業資訊

風淋室單片機主程序匯總

發布時間:2011-06-21 00:00:00  瀏覽:73

風淋室單片機主程序匯總

前面我們了解了風淋室軟件系統是如何設計的,現在就再深入一步,探討風淋室單片機的主程序。

#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;


相關新聞