Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4049

SDK • Scanvideo -- changing video mode at runtime

$
0
0
Hi there,

I've been playing with scanvideo in the pico-extras and -playground repository and I can't quite figure out how what I need to do to be able to change resolution/timings at runtime.

I'm using a Pico2 and a 12 bit RGB output.

Everything I've tried so far seems to result in a black screen and, I presume, a lockup of the 2350 upon a change.

The obvious, calling scanvideo_timing_enable(false) perform a new setup() and then _enable(true) again doesn't look like it would work because the state machine tries to be set up again without being uninitialised.

I can't see anything that provides a de-initialisation in the library, so I'm guessing it's something I'd have to unpick myself and disable PIO, state machines and any timers before doing a new setup()?

Has anyone done this and has a crib sheet of the requisite steps, or am I missing a trick in the library?

Thanks,

BW

PS: even calling timing_enable(false) and then timing_enable(true) results in a black screen, so I'm assuming there's no trivial way to do this.

Statistics: Posted by badwolf77 — Mon Dec 16, 2024 11:15 pm



Viewing all articles
Browse latest Browse all 4049

Trending Articles