|
Post by TangoXXVI on Feb 4, 2020 18:45:51 GMT -8
Hello my fellows, i was reading the library and found the instruction cmd_screensaver, and think can be usefull a screensaver function or rutine for a sleeping mode or somethink like that.
But, I try to use, and nothing happened...
so, I look for some guidence in this comand, how it works?
Thank you.
|
|
|
Post by jamesbowman on Feb 5, 2020 7:36:31 GMT -8
The screensaver command is quite clever. If you do:
GD.Clear(); GD.Begin(POINTS); GD.PointSize(100); GD.Vertex2f(16 * 50, 16 * 50); GD.swap();
Then you'll get a white circle drawn on the screen at (50,50).
If you do this instead:
GD.Clear(); GD.Begin(POINTS); GD.PointSize(100); GD.Macro(0); GD.swap(); GD.cmd_screensaver();
then the screensaver command will move the circle around the screen. You can actually draw anything, e.g. a bitmap, in the place of the circle.
Remember to use GD.cmd_stop() to stop the screensaver, otherwise the hardware will continue to update REG_MACRO0.
|
|
|
Post by TangoXXVI on Feb 6, 2020 12:16:56 GMT -8
Hello, I starting some test, but now i have a question, about GD.Macro(0), do u have some info?
|
|
|
Post by jamesbowman on Feb 6, 2020 12:29:48 GMT -8
|
|