Education Kit and VGA?
Mr._Packrat
Posts: 4
Sorry if this is a lame question, but I recently purchased an education kit (married + kids = poor).· I made and add-on pcb for a VGA cable with resistors, etc.· It appears·that the demo board uses pins 16-23 for VGA output.· I've hooked up just the LEDs (with current limiting resisitors, and tried to load the VGA_Text.spin sample code to check it out.· When I load the app into the propeller, none of the LEDs light.·· I modified and example program to toggle the LEDs on and off to erify that the propeller and LEDs work.· I'm I missing something painfully basic?
I've found the line:
· vga_pins := basepin | %000_111
but, where do I set the code to drive pins·16-23? or is this already the default?·
I have the pins setup as follows:
Pin 16 -= vsync
Pin 17 -= hsync
Pin 18 -= Blue (470ohm) bit 1
Pin 19 -= Blue (220ohm) bit 0
Pin·20 -= Green (470ohm) bit 1
Pin·21 -= Green (220ohm) bit 0
Pin·22 -=·Red (470ohm) bit 1
Pin·23 -= Red·(220ohm) bit 0
I would thing at the very least I'd see LEDs strobing?
Thanks in advance for any help or sample code (or a clue)
- Dan
I've found the line:
· vga_pins := basepin | %000_111
but, where do I set the code to drive pins·16-23? or is this already the default?·
I have the pins setup as follows:
Pin 16 -= vsync
Pin 17 -= hsync
Pin 18 -= Blue (470ohm) bit 1
Pin 19 -= Blue (220ohm) bit 0
Pin·20 -= Green (470ohm) bit 1
Pin·21 -= Green (220ohm) bit 0
Pin·22 -=·Red (470ohm) bit 1
Pin·23 -= Red·(220ohm) bit 0
I would thing at the very least I'd see LEDs strobing?
Thanks in advance for any help or sample code (or a clue)
- Dan
Comments
The value passed to the "Start" command is the basepin. That is how you set up which group of pins to use for the VGA adapter. In this example, they pass the value of 16 as the basepin. It uses the group of 8 pins starting at 16 (i.e. 16-23)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Brian Meade
"They who dream by day are cognizant of many things which escape those who dream only by night" - Edgar Poe
These propeller chips are quite addictive. I can't wait for my protoboards to ship out!
- Dan
PS - Does anyone know if any GFX sprite libraries exist for the propeller or do you need to go with the hydra book for these goodies? I have Andre's first game console book and have really enjoyed reading it cover to cover, so maybe Father's day will bring me the hydra manual...
But any one 4 color sprite would work. You'd just have to convert it over.
The Hydra graphics code is nice though!! It supports all 86 color on the sprites!
NTSC that is.
That's a challenge for all you hackers out there! Can you add a mouse sprite to tv.spin?