Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:00 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 : PicoMite VGA: Mode 1 colour feature question...

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 05:06am 12 Aug 2022
Copy link to clipboard 
Print this post

Hi all.

Ended up with a day to spare today, so I spent it playing with a PM VGA, working towards porting the last of my PICAXE code over to this.

Everything is going well, but I have one question about the crafty way you can use colour in mode 1 on the PM VGA.

How do you clear the screen once you have put colour on it via the TILE command?

CLS clears all text, but leaves all the TILE colours there.
CLS RGB(BLACK) also does not remove the colours I have added.

Pressing F4 to enter the editor DOES, so that is how I am getting rid of it for now, but is there a command I can use to essentially wipe all the colour added via the TILE command in mode 1?

The long way around, is to keep track of what colours I have used and where, and manually remove them one-by-one in code, but that will get tedious very quickly, so if there is a faster method, I'd love to know what it is.

Thanks chums.

EDIT: I guess it would be dead-easy to write a simple sub that just makes all tiles black, then returns, so I think I will just do it that way.  I can't see anything specific in the PM VGA manual to suggest there is a command that I am not seeing, so....

EDIT: No, that does not work either - it makes the screen PERMANENTLY blank, and you can't see ANYTHING then till you use F4 for the editor again.

This is what I tried to do:


Sub WIPE
 Local Row
 For Row=0 to 29
   TILE 0,Row,RGB(White),RGB(Black),40,1
 Next Row
 CLS
End Sub


Adding the likes of COLOUR WHITE to the sub at the end, or just typing it in at the command prompt and pressing ENTER after this sub runs does not give me back anything, so a bit stuck on this one...

EDIT: Keep foreground white, make background black, wipe all tiles, then CLS.
See edited code box above.
This is working fine.
Problem solved.
Edited 2022-08-12 15:49 by Grogster
Smoke makes things work. When the smoke gets out, it stops!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 07:39am 12 Aug 2022
Copy link to clipboard 
Print this post

In my PicoGAME test program I used
Mode 1
Font 3
CLS

to clear the screen between each page. That works for what I needed.
Mick

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

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 08:35am 12 Aug 2022
Copy link to clipboard 
Print this post

Yes, that is even better and more simple!
Thanks.
Smoke makes things work. When the smoke gets out, it stops!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 08:47am 12 Aug 2022
Copy link to clipboard 
Print this post

TILE x, y [,foreground]  [,background] [,no_tiles_wide] [,no_tiles_high]
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5089
Posted: 02:12pm 12 Aug 2022
Copy link to clipboard 
Print this post

@Peter,

I guess this is probably a no-go, but I think I ask anyway.
The editor supports function keys (i.e. F1...F5).

In the option settings you can program function key F6.
Can F6 be used inside the editor in some way?

i.e. F6 is programmed TILE 0,0,rgb(blue),rgb(white),40,30 + <CR>
I guess you see the purpose...

Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 02:17pm 12 Aug 2022
Copy link to clipboard 
Print this post

  Quote   guess this is probably a no-go, but I think I ask anyway.
The editor supports function keys (i.e. F1...F5).

In the option settings you can program function key F6.
Can F6 be used inside the editor in some way?

i.e. F6 is programmed TILE 0,0,rgb(blue),rgb(white),40,30 + <CR>
I guess you see the purpose...


Not needed:

option lcdpanel console 1,rgb(white),rgb(blue)
 
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