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