|
Forum Index : Microcontroller and PC projects : PicoMite - My misunderstanding of "PAGE"
| Author | Message | ||||
| Andrew_G Guru Joined: 18/10/2016 Location: AustraliaPosts: 873 |
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: AustraliaPosts: 3308 |
> 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 KingdomPosts: 8304 |
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: AustraliaPosts: 873 |
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 KingdomPosts: 2681 |
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 KingdomPosts: 8304 |
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 KingdomPosts: 10628 |
Yes |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |