Propeller user learning VGA programing for first time, need some guidance
Tony B.
Posts: 356
I was wondering if there other resources I may be missing from Parallax that can help me learn to write code for displaying text and graphics on a VGA monitor. I am completely new to this type of coding though I have been using the Propeller chip for my robots for some time. I have the following equipment and downloads already and have read the Propeller manual, syntax guide, and the PE Labs book.
1. Demo Board
2. VGA Monitor
3. PS/2 keyboard and mouse
4. Full Hydra Manual Just download not read
5. VGA demo code By Chip Gracey from OBEX
Other than studying the available code, a method I have used in the past to learn new things, and possibly reading the Hydra manual what other helps do you all suggest.
Thanks,
Tony
1. Demo Board
2. VGA Monitor
3. PS/2 keyboard and mouse
4. Full Hydra Manual Just download not read
5. VGA demo code By Chip Gracey from OBEX
Other than studying the available code, a method I have used in the past to learn new things, and possibly reading the Hydra manual what other helps do you all suggest.
Thanks,
Tony
Comments
Working through some basic displays with the Parallax drivers is a great starting point. The HYDRA book you have is one of the better entry point references, IMHO. Those VGA / TV drivers are capable of a lot, and sometimes get passed over too quickly, IMHO. Start there.
Your Prop tool download comes with basic TV and VGA drivers, along with a graphics library. It's pretty easy and fun to modify the simple programs included, and again, a whole lot is possible with those drivers.
I would like to design an interactive industrial control interface for a project. How do I do that?
Just kidding! I want to start out with the basics, you know, Hello World! I want to be able to put text on the screen, choose its placement, color, and style. Then move on to placing sensor data on the screen like you might do in PST when testing a robot or project. Again, I just want to learn the basics and grow from there. I have no problem putting effort into learning, just was wondering if I was missing a good Propeller focused tutorial or guide. Also, I wanted a post on the forums to be able to ask questions along the way because as all of you who have responded have shown, the forums are a great resource for help and encouragement!
Thanks,
Tony
You could also try "VisualSpin", if you're brave
It comes with the Prop Tool in the Propeller Tool..\Examples\Library folder, in case you can't find it...
Actually, now that I think about it, the Prop Tool should include an easy way to access the Library examples...
Maybe as an item in the "File" menu...
Thanks
Tony
Tony
$00: wordfill(@screen, $220, screensize)
I understand the wordfill part but where did the hex value $220 come from. It seems arbitrary to me though I know it isn't? It's to big to match ASCII codes correct? I know it paints a blue screen with no text and if I change the value I get a crazy white and blue pattern.
Any help would be appreciated.
Tony
I follow the idea of printing a space character, but why wasn't $20 used instead of $220? I tried $20 and it worked fine.
I'm not understanding what you are saying to do here.
Printing $20 will construct $0220 in the assignment above and store it in screen memory (combined colour/character info). I'm not sure as to the purpose of the fixed $0200 part but I believe there is an explanation out there. Anyway, $0220 - your original question - boils down to a space character written in colour 0.
Update: The $0200 is essential for addressing (it looks really messy without it). Further digging reveals that this $0200 becomes the base address for the ROM font after being rotated left by #6 ($8000). The format of a character entry basically provides as much help to the PASM driver as possible.
I guess I should say I get the idea of what is going on but still do fully understand the Print(c) PUB fully.
Thanks,
Tony