Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:01 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2 - Screensaver Equivalent

Author Message
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 871
Posted: 02:25am 08 Sep 2020
Copy link to clipboard 
Print this post

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: Canada
Posts: 1132
Posted: 03:49am 08 Sep 2020
Copy link to clipboard 
Print this post

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: Australia
Posts: 871
Posted: 04:21am 08 Sep 2020
Copy link to clipboard 
Print this post

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
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025