![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
蓝桥杯
yinyandong
这个作者很懒,什么都没留下…
展开
-
蓝桥杯单片机省赛第十二届
刚刚参加完这届的比赛,试题不难,因此一出考场就把代码发出来了,仅供参考!#include "reg52.h"#include "iic.h"#include "onewire.h"#define char unsigned char#define int unsigned intsfr P4=0xc0;sbit R1=P3^3;sbit R2=P3^2;sbit C1=P4^4;sbit C2=P4^2;void read_temp();char code smg_dat[13]={原创 2021-04-18 14:30:43 · 12170 阅读 · 40 评论 -
蓝桥杯十一届省赛(第二场)
#include "reg52.h"#include "iic.h"#include "onewire.h"#define char unsigned char#define int unsigned intsbit s4=P3^3;sbit s5=P3^2;sbit s6=P3^1;sbit s7=P3^0;int t=0;//温度char temp_hl[2]={20,30}; //温度上下限char oldtemp_hl[2]={0,0};//保存温度上下限char s4_st原创 2021-04-15 22:25:31 · 331 阅读 · 0 评论 -
蓝桥杯第十届省赛题
#include "reg52.h"#include "iic.h"sbit s4 =P3^3;sbit s5 =P3^2;sbit s6 =P3^1;sbit s7 =P3^0;#define char unsigned char#define int unsigned intchar code smgnodot[12]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xc1,0x8e};//0~9,u,fchar code smg原创 2021-04-13 13:18:53 · 318 阅读 · 0 评论