Commit c9b3e21
committed
rev C: honor a STARTMODE config option for power-on display
The revision C protocol already defines STARTMODE_DEFAULT/IMAGE/VIDEO
(byte 0 of the OPTIONS payload), but SetOrientation always sent DEFAULT,
which blanks the panel at power-on until the host connects. The panel
keeps this setting across power cycles.
Read an optional display.STARTMODE config value (DEFAULT/IMAGE/VIDEO) so
a display fitted with an SD card can instead replay the last image or
video it was sent. Defaults to DEFAULT, so behavior is unchanged unless
the option is set; unknown values warn and fall back to DEFAULT.
config.yaml is intentionally not modified (guarded by CI); maintainers
can add the documented 'STARTMODE: DEFAULT' key to the shipped template.1 parent 4df61d9 commit c9b3e21
1 file changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
314 | | - | |
| 315 | + | |
315 | 316 | | |
316 | 317 | | |
317 | | - | |
| 318 | + | |
318 | 319 | | |
319 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
320 | 341 | | |
321 | 342 | | |
322 | 343 | | |
| |||
0 commit comments