-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathboot.txt
More file actions
581 lines (547 loc) · 18.4 KB
/
boot.txt
File metadata and controls
581 lines (547 loc) · 18.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
Page boot
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
Width : 320
Effect : load
Effect Priority : 0
Effect Time : 300
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Fill : picture
Back. Picture ID : 32
Events
Preinitialize Event
dim=100
covx baud,tmp_baudrate.txt,0,0
sys_baudrate.txt="Baud rate: "
sys_baudrate.txt+=tmp_baudrate.txt
sys_baudrate.txt+=" bps"
ver_tft.txt="TFT: "+version.txt
sendme
Postinitialize Event
line 14,315,305,315,WHITE
line 305,315,305,456,WHITE
line 14,315,14,456,WHITE
line 14,456,305,456,WHITE
line 16,317,303,317,WHITE
line 303,317,303,454,WHITE
line 16,317,16,454,WHITE
line 16,454,305,454,WHITE
vis log_title,1
line 14,55,305,55,WHITE
line 305,55,305,171,WHITE
line 14,55,14,171,WHITE
line 14,171,305,171,WHITE
line 16,57,303,57,WHITE
line 303,57,303,169,WHITE
line 16,57,16,169,WHITE
line 16,169,305,169,WHITE
vis ver_title,1
line 14,185,305,185,WHITE
line 305,185,305,301,WHITE
line 14,185,14,301,WHITE
line 14,301,305,301,WHITE
line 16,187,303,187,WHITE
line 303,187,303,299,WHITE
line 16,187,16,299,WHITE
line 16,299,305,299,WHITE
vis sys_title,1
Variable (string) version
Attributes
ID : 6
Scope : global
Text : 5
Max. Text Size: 7
Variable (int32) log_len
Attributes
ID : 15
Scope: local
Value: 0
Variable (int32) log_pos
Attributes
ID : 16
Scope: local
Value: 0
Variable (int32) log_line_count
Attributes
ID : 17
Scope: local
Value: 0
Variable (int32) log_start_pos
Attributes
ID : 18
Scope: local
Value: 0
Variable (int32) log_end_pos
Attributes
ID : 19
Scope: local
Value: 0
Variable (string) log_temp
Attributes
ID : 20
Scope : local
Text :
Max. Text Size: 2
Variable (string) tmp_baudrate
Attributes
ID : 22
Scope : local
Text :
Max. Text Size: 8
Variable (int32) log_max_lines
Attributes
ID : 23
Scope: local
Value: 7
Variable (int32) counter
Attributes
ID : 24
Scope: local
Value: 0
Variable (string) va0
Attributes
ID : 26
Scope : local
Text :
Max. Text Size: 10
Variable (string) va1
Attributes
ID : 27
Scope : local
Text :
Max. Text Size: 10
Variable (string) csv
Attributes
ID : 28
Scope : local
Text :
Max. Text Size: 50
Text log_body
Attributes
ID : 2
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 328
Width : 280
Height : 119
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : crop image
Associated Keyboard : none
Font ID : 0
Cropped Back. Picture ID: 32
Horizontal Alignment : left
Vertical Alignment : top
Input Type : character
Text :
Max. Text Size : 800
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text nspanel_easy
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 15
y coordinate : 15
Width : 170
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : crop image
Associated Keyboard : none
Font ID : 3
Cropped Back. Picture ID: 32
Horizontal Alignment : left
Vertical Alignment : top
Input Type : character
Text : NSPanel Easy
Max. Text Size : 12
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text ver_title
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 41
Width : 67
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : crop image
Associated Keyboard : none
Font ID : 0
Cropped Back. Picture ID: 32
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text : Versions
Max. Text Size : 9
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text ver_tft
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 72
Width : 175
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : crop image
Associated Keyboard : none
Font ID : 0
Cropped Back. Picture ID: 32
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text : TFT: Waiting...
Max. Text Size : 25
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text ver_firmware
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 102
Width : 175
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : crop image
Associated Keyboard : none
Font ID : 0
Cropped Back. Picture ID: 32
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text : Firmware: Waiting...
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text ver_blueprint
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 132
Width : 175
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : crop image
Associated Keyboard : none
Font ID : 0
Cropped Back. Picture ID: 32
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text : Blueprint: Waiting...
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text sys_title
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 174
Width : 58
Height : 27
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : crop image
Associated Keyboard : none
Font ID : 0
Cropped Back. Picture ID: 32
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text : System
Max. Text Size : 9
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text sys_ip
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 202
Width : 175
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : crop image
Associated Keyboard : none
Font ID : 0
Cropped Back. Picture ID: 32
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text : IP: Waiting...
Max. Text Size : 20
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text sys_framework
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 232
Width : 175
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : crop image
Associated Keyboard : none
Font ID : 0
Cropped Back. Picture ID: 32
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text : Framework: Waiting...
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text sys_baudrate
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 262
Width : 175
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : crop image
Associated Keyboard : none
Font ID : 0
Cropped Back. Picture ID: 32
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text : Baud rate: Waiting...
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text log_title
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 20
y coordinate : 304
Width : 35
Height : 27
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : crop image
Associated Keyboard : none
Font ID : 0
Cropped Back. Picture ID: 32
Horizontal Alignment : left
Vertical Alignment : center
Input Type : character
Text : Log
Max. Text Size : 9
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Progress Bar progress
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 0
y coordinate : 465
Width : 320
Height : 15
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Direction : horizontal
Value : 0
Background Picture ID: 65535
Foreground Picture ID: 65535
Dual-state Button bt_reboot
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : on press and release
Opacity : 127
x coordinate : 225
y coordinate : 15
Width : 80
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : 3D auto
Font ID : 0
Back. Color (Unpressed) : 50712
Back. Picture ID (Pressed): 65535
Back. Color (Pressed) : 9375
Font Color (Unpressed) : 0
Font Color (Pressed) : 65535
Horizontal Alignment : center
Vertical Alignment : center
State : unpressed
Text : Reboot
Max. Text Size : 6
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Events
Touch Release Event
log_body.txt+="Click button 'Reboot'\r"
if(api==0)
{
rest
}
Timer log_scroll
Attributes
ID : 14
Scope : local
Period (ms): 400
Enabled : yes
Events
Timer Event
strlen log_body.txt,log_len.val
log_pos.val=0
log_line_count.val=0
log_start_pos.val=0
log_end_pos.val=0
log_temp.txt=""
// Count the number of lines (instances of \r)
while(log_pos.val<log_len.val)
{
// Extract each character to find \r
substr log_body.txt,log_temp.txt,log_pos.val,2
if(log_temp.txt=="\r")
{
log_line_count.val++
// Record the position of the first \r
if(log_line_count.val==1)
{
log_start_pos.val=log_pos.val
}
// Record the position of the second \r
if(log_line_count.val==2)
{
log_end_pos.val=log_pos.val
}
}
log_pos.val++
}
// Check if the number of lines exceeds the maximum allowed
if(log_line_count.val>log_max_lines.val)
{
// If more than max_lines, remove the first line
if(log_end_pos.val>0)
{
// Remove the first line including the newline character
substr log_body.txt,log_body.txt,log_start_pos.val+2,log_len.val-log_start_pos.val-2
}
}
doevents
Timer tm_esphome
Attributes
ID : 25
Scope : local
Period (ms): 1000
Enabled : yes
Events
Timer Event
counter.val++
if(counter.val>60)
{
rest
}
covx display_mode,va0.txt,0,0
covx charset,va1.txt,0,0
csv.txt="boot,params,"+va0.txt+","+va1.txt+","+version.txt
printh 92
prints "localevent",0
printh 00
prints csv.txt,0
printh 00
printh FF FF FF
sys0=counter.val%10
if(sys0==0)
{
bauds=115200
}
covx baud,tmp_baudrate.txt,0,0
sys_baudrate.txt="Baud rate: "
sys_baudrate.txt+=tmp_baudrate.txt
sys_baudrate.txt+=" bps"
sendme
doevents