Shop OBEX P1 Docs P2 Docs Learn Events
Video Novice needs advice about screen updates — Parallax Forums

Video Novice needs advice about screen updates

I have based my HMI on the P2_SolarPanelMonitorDemo. I notice update flickering as it is redrawn about every 20 mS.

I wish to avoid this flickering.

  1. I could just redraw on change. this may be practical, but would probably still be noticeable in the redrawn part of the screen.
  2. I notice PUB routines waitForVsync(display) and waitForBlanking(display) in P2VideoDrv. I assume these are provided as an aid to avoid my problem, but are not used in P2SimpleVideo which is an object of the solar panel demo.

Should I mod P2SimpleVideo to use one of these, or modify it to expose these to my program?
Which would be best to use?

Warning, I have almost no idea of what I am doing... I just have some vague recollection that syncing changes to one of these events is the way to do this...

Thanks!

Sign In or Register to comment.