TV Graphical display - help needed
computer guy
Posts: 1,113
Hi everyone,
I need help writing some code that can use the graphics driver to display 5 squares on a tv.
The squares will be in a horizontal line and be:
Green Red Yellow Blue Orange.
They will need to be able to be hidden.
Something like that.
I have never done graphics programming on the prop or any device for that matter.
Any help would be greatly appreciated.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Building Blocks To The Propeller Chip A web site designed to help people who are new to the propeller chip.
Guitar Hero controller using the prop (WIP) --> HERE
I need help writing some code that can use the graphics driver to display 5 squares on a tv.
The squares will be in a horizontal line and be:
Green Red Yellow Blue Orange.
They will need to be able to be hidden.
If green == true showgreen else hidegreen
Something like that.
I have never done graphics programming on the prop or any device for that matter.
Any help would be greatly appreciated.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Building Blocks To The Propeller Chip A web site designed to help people who are new to the propeller chip.
Guitar Hero controller using the prop (WIP) --> HERE
Comments
Other than that just grab the graphics demo and start playing with it. Its fairly easy to use.
The squares will just appear or disappear.
I have tried playing with the graphics demo in this thread.
http://forums.parallax.com/showthread.php?p=752119
However have gotten no where.
Thank you Steven
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Building Blocks To The Propeller Chip A web site designed to help people who are new to the propeller chip.
Guitar Hero controller using the prop (WIP) --> HERE
After clearing the screen, all screen tiles is the tile array are the space tile with some color, usually black. So, just make new solid colors in the color table.
Then, either replace tiles in the tile array with space tiles with the appropriate color, or just change the bits in the tile array that correspond to color (I think th elower 6 bits in each word).
Each tile is represented by a word in the tile array.
I understand that I need to set the tiles colors in the tile array but have no idea how.
Thank you Rayman
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Building Blocks To The Propeller Chip A web site designed to help people who are new to the propeller chip.
Guitar Hero controller using the prop (WIP) --> HERE
Andy
Just a quick question, where can I find the color codes?
Andy, your example is exactly what I need.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Building Blocks To The Propeller Chip A web site designed to help people who are new to the propeller chip.
Guitar Hero controller using the prop (WIP) --> HERE
http://www.rayslogic.com/propeller/Programming/TV_Colors.htm