stc15f2k60s2时钟温度按键程序
单片机源程序如下:
- #include "stc15f2k60s2.h"
- #include "shumaguan.h"
- #include "djs.h"
- #include "leddeng.h"
- #include "zhongduan.h"
- #include "DS18B20.H"
- #include "enjian.h"
- void main()
- {
- P2 = ((P2&0X1F)|0xa0);
- P0 = 0x00;
- P2&=0x1f;
- init();
- while(1)
- {
-
- if(jm==1)
- {
- smgxs(ss,sg,10,fs,fg,10,ms,mg);
- }
- if(jm==2)
- {
- smgxs(13,13,13,13,wds,wdg,11,12);
- }
- if(jm==3)
- {
- led();
- }
- blfl();
- ymzh();
- naozhong();
- wendu = ChangTemp_chabiao();
-
-
- }
- }
复制代码
所有资料51hei提供下载:
#温度,时钟,计时器,流水灯,按键.zip
(36.85 KB, 下载次数: 25)
|