![]() |
Forum Index : Microcontroller and PC projects : CMM2 - Screensaver Equivalent
Author | Message | ||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
G'day all, I'm sorry if I am being particularly thick but I can't get my head fully around "PAGE" etc. What I am trying to do is the equivalent of a screen saver (not to protect the screen but to reduce the amount of light in my cave out of hours - and no I don't want to actually turn my monitor off . . .). I have a program that collects and displays data 24/7. I'd like to continue collecting and graphing the data but blank out the screen until I want to display it. (I can trigger this by a timer, a key press, a switch or via the IR etc). Can someone tell me how to draw graphics on a screen, which can be replaced by a blank screen (whilst the graphics screen continues to draw the graph but not show it) and then show/un-show the graphics screen by command? (I'd prefer to use MODE 9,16 (its an early statement in the program) and I have set 'OPTION DEFAULT MODE 9'). Below is one of my attempts (calling the subroutines is easy) but it simply returns with a blank screen which it proceeds to fill as new data comes in rather than re-displaying the data copied before the CLS. Many thanks, Andrew SUB ScreenSaver_On PAGE COPY 0 to 1 CLS PAGE WRITE 1 END SUB 'ScreenSaver_On SUB ScreenSaver_Off PAGE COPY 1 to 0 PAGE WRITE 0 END SUB 'ScreenSaver_Off |
||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
I would suggest you draw your graphics on a page other than 0. Then, copy that page to page 0 when you want to see it, otherwise just "cls" for when the screen saver is active. Visit Vegipete's *Mite Library for cool programs. |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Pete, Thanks. I'm testing it now. New data comes in roughly every 10 seconds but occasionally a second or two apart. I know when new data has come in - so I guess it is not unreasonable to copy to page 0 each time new data has arrived? The CMM2 is so fast that it won't be noticeable. Cheers, Andrew |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |