Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:24 21 Nov 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 : PicoMite - My misunderstanding of "PAGE"

Author Message
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 873
Posted: 01:08am 03 Jul 2022
Copy link to clipboard 
Print this post

Hi all,
I think I am misunderstanding the PAGE command. Can someone please enlighten me? (gently?)

With the GUI Controls one can group the controls to be shown (or not) onto Pages.
Switching pages will therefore show (or not show) the relevant GUI controls. YES?

What I would also like to do is, say, draw a graph etc - behind the scenes whilst showing another page, and then switch to the graph page to show it (and then continuing to populate the other page(s) whilst showing the graph).

As a practical example - say switching between an analogue clock (showing the correct time) and a graph of say noise levels every 5 seconds.

Is this an available feature - or is it just a matter of drawing the relevant items as quickly as possible each time they are required?
(I agree that the speed of the Pico makes this a very real approach).

Kind regards,

Andrew
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 07:34am 03 Jul 2022
Copy link to clipboard 
Print this post

> Switching pages will therefore show (or not show) the relevant GUI controls. YES?
Correct.

But this only applies to the GUI controls (GUI CAPTION, GUI SPINBOX, etc).  You have a need to draw graphical objects which are not GUI controls and use commands like LINE, BOX, etc.  So, when you switch to your graph, you will need to remove your controls (GUI HIDE ALL), then draw your graph completely from scratch.  When you want to return to your GUI page you will have to clear the screen then issue GUI SHOW ALL.

> is it just a matter of drawing the relevant items as quickly as possible each time they are required?
Correct again.

This might sound inefficient but this is how all modern GUI systems (Windows, Android, etc) work... lots of erasing and redrawing.  It happens so fast that the user does not notice the inefficiency.

Geoff
Edited 2022-07-03 17:38 by Geoffg
Geoff Graham - http://geoffg.net
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8304
Posted: 09:11am 03 Jul 2022
Copy link to clipboard 
Print this post

The Colour Maximite 2 and 3 have an extended set of PAGE commands that do things similar to what you are looking for, Andrew. Unfortunately the PicoMite doesn't have the amount of memory needed to implement these.

However - the PicoMite VGA version now has the FRAMEBUFFER command which *might* be of some use, but only with a VGA display. It's in the first post of the latest Betas thread. I've just added a compilation PDF of the other betas there.

You may be able to use BLIT commands on the non-VGA version, using BLIT READ to copy the display into the buffer and BLIT WRITE to restore it.

Unfortunately neither of these will enable you to update a display in the background.
Edited 2022-07-03 19:30 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 873
Posted: 09:21pm 03 Jul 2022
Copy link to clipboard 
Print this post

Geoff and Mick,
Many thanks.
The Pico is a wonderous thing and you and Peter (with contributions by many other 'shedders') are helping it grow to its full capabilities.

Cheers,

Andrew
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 07:26pm 21 Jul 2022
Copy link to clipboard 
Print this post

I'm using ili9341 and just a beginner but if I wanted 16 x 16 sprites would they have to be plotted, erased, replotted for 1 pixel motion?
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8304
Posted: 08:42pm 21 Jul 2022
Copy link to clipboard 
Print this post

The ILI9341 supports, according to the manual, transparent text, BLIT and BLIT READ commands. Check those out in the manual, they are pretty powerful.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10628
Posted: 09:51pm 21 Jul 2022
Copy link to clipboard 
Print this post

  Quote  I'm using ili9341 and just a beginner but if I wanted 16 x 16 sprites would they have to be plotted, erased, replotted for 1 pixel motion?


Yes
 
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