📄 show.lst.svn-base
字号:
153 3 {
154 4 r=0;
155 4 Send_data8((&timer[0]),(&timer[0][0]));
156 4 } //不显示
157 3 else
158 3 {
159 4 r=0;
160 4 Send_data8((&timer[0]),(&timer[Hour/16][h]));
161 4 }
162 3 Send_data2((&hanzi[h*2+705]),(&timer[Hour%16][h])); //星字符
163 3 if(w==0)
164 3 {Send_data2((&hanzi[h*2+704]),(&timer[10][h])); }
165 3 else
166 3 {Send_data2((&hanzi[h*2+704]),(&timer[17][h]));}
167 3
168 3 Send_data2((&hanzi[h*2+737]),(&timer[Cent/16][h])); //期字符
169 3 Send_data2((&hanzi[h*2+736]),(&timer[Cent%16][h]));
170 3 if((Flicker==1)&&(id==4)) //闪烁标志为1时不亮,为零时亮
171 3 {
172 4 Send_data2((&timer[0][0]),(&timer[10][h])); //不显示
173 4 Send_data2((&timer[0][0]),(&timer[Sec/16][h])); //不显示
174 4 }
175 3 else
176 3 {
177 4 if(w==0)
178 4 { Send_data2((&hanzi[Week%16*32+h*2+737]),(&timer[10][h]));} //星期值
C51 COMPILER V8.08 SHOW 09/06/2012 18:00:00 PAGE 4
179 4 else
180 4 {Send_data2((&hanzi[Week%16*32+h*2+737]),(&timer[17][h]));} //星期值
181 4
182 4 Send_data2((&hanzi[Week%16*32+h*2+736]),(&timer[Sec/16][h]));
183 4 }
184 3 ri=0;
185 3 Send_data8((&timer[0][0]),(&timer[Sec%16][h]));
186 3 } //不显示
187 2 /**************************************************************************************/
188 2 if(id>4) //f为三秒转换显示
189 2 {
190 3 SERr=SERg=1;
191 3 if((Flicker==1)&&(id==5)) //闪烁标志为1时不亮,为零时亮
192 3 {
193 4 Show_pass1(); //不显示一个字
194 4 }
195 3 else
196 3 {
197 4 if(Hour/16<1)
198 4 Send_data5(&timer[0][0]); //时十位小于1时不显示
199 4 else
200 4 Send_data5(&timer[Hour/16][h]); //时值
201 4 Send_data5(&timer[Hour%16][h]);
202 4 }
203 3 Send_data4(&timer[10][h]); //两个点
204 3 if((Flicker==1)&&(id==6)) //闪烁标志为1时不亮,为零时亮
205 3 {
206 4 Show_pass1(); //不显示一个字
207 4 }
208 3 else
209 3 {
210 4 Send_data3(&timer[Cent/16][h]);
211 4 Send_data3(&timer[Cent%16][h]); //分值
212 4 }
213 3 Send_data4(&timer[10][h]); //两个点
214 3 if((Flicker==1)&&(id==7)) //闪烁标志为1时不亮,为零时亮
215 3 {
216 4 Show_pass1(); //不显示一个字
217 4 }
218 3 else
219 3 {
220 4 Send_data4(&timer[Sec/16][h]); //秒
221 4 Send_data4(&timer[Sec%16][h]);
222 4 }
223 3 }
224 2
225 2
226 2
227 2 if((id==0)&&(f==3)) //f为三秒转换显示
228 2 {
229 3 if(Hour/16<1)
230 3 {
231 4 r=0;
232 4 Send_data7((&hanzi[h*2+1185]),(&timer[0][0]));//温字符
233 4 }
234 3 else
235 3 {
236 4 r=0;
237 4 Send_data7((&hanzi[h*2+1185]),(&timer[Hour/16][h]));
238 4 }
239 3 Send_data1((&hanzi[h*2+1184]),(&timer[Hour%16][h]));
240 3 if(w==0)
C51 COMPILER V8.08 SHOW 09/06/2012 18:00:00 PAGE 5
241 3 Send_data1((&hanzi[h*2+1217]),(&timer[10][h])); //度字符
242 3 else
243 3 Send_data1((&hanzi[h*2+1217]),(&timer[17][h]));
244 3 Send_data1((&hanzi[h*2+1216]),(&timer[Cent/16][h]));
245 3 Send_data1((&timer[10][h]),(&timer[Cent%16][h])); //两个点
246 3 if(U8T_data_H/10==0x00)
247 3 {
248 4 if(w==0)
249 4 Send_data1((&timer[0][0]),(&timer[10][h]));
250 4 else
251 4 Send_data1((&timer[0][0]),(&timer[17][h]));
252 4 }
253 3 else
254 3 {
255 4 if(w==0)
256 4 Send_data1((&timer[U8T_data_H/10][h]),(&timer[10][h])); //温度值的十位值
257 4 else
258 4 Send_data1((&timer[U8T_data_H/10][h]),(&timer[17][h]));
259 4 }
260 3 Send_data1((&timer[U8T_data_H%10][h]),(&timer[Sec/16][h])); //温度值的个位
261 3
262 3 ri=0;
263 3 Send_data7((&timer[11][h]),(&timer[Sec%16][h]));
264 3 }
265 2 /******************************************************************************/
266 2 if((id==0)&&(f==4)) //f为三秒转换显示
267 2 {
268 3 if(Hour/16<1)
269 3 {
270 4 r=0;
271 4 Send_data7((&hanzi[h*2+3457]),(&timer[0][0]));
272 4 } //湿字符
273 3 else
274 3 {
275 4 r=0;
276 4 Send_data7((&hanzi[h*2+3457]),(&timer[Hour/16][h]));
277 4 }
278 3 Send_data1((&hanzi[h*2+3456]),(&timer[Hour%16][h]));
279 3 if(w==0)
280 3 Send_data1((&hanzi[h*2+1217]),(&timer[10][h])); //度字符
281 3 else
282 3 Send_data1((&hanzi[h*2+1217]),(&timer[17][h]));
283 3
284 3 Send_data1((&hanzi[h*2+1216]),(&timer[Cent/16][h]));
285 3 Send_data1((&timer[10][h]),(&timer[Cent%16][h])); //两个点
286 3
287 3
288 3
289 3
290 3 if(U8RH_data_H/10==0x00)
291 3 {
292 4 if(w==0)
293 4 Send_data1((&timer[0][0]),(&timer[10][h]));
294 4 else
295 4 Send_data1((&timer[0][0]),(&timer[17][h]));
296 4
297 4 }
298 3 else
299 3 {
300 4 if(w==0)
301 4 Send_data1((&timer[U8RH_data_H/10][h]),(&timer[10][h]));
302 4 else
C51 COMPILER V8.08 SHOW 09/06/2012 18:00:00 PAGE 6
303 4 Send_data1((&timer[U8RH_data_H/10][h]),(&timer[17][h]));
304 4 } //湿度值的十位值
305 3 Send_data1((&timer[U8RH_data_H %10][h]),(&timer[Sec/16][h]));//湿度值的个位
306 3
307 3 ri=0;
308 3 Send_data7((&timer[16][h]),(&timer[Sec%16][h])); //湿度值的符号
309 3 }
310 2 /***********************************************************************************************/
311 2
312 2 //修改程
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -