Sample for working with Graphics.spin
Jim Fouch
Posts: 395
A while ago (Like 3+ years ) I posted a sample of a motorcycle·instrument display·I designed for my bike. I haven't really done much with it. Don't even have that same bike anymore.
I've had several people ask for the source to see how it was done. I've posted it to the OBEX for all to see.
It shows...
I know it's not documented the best, but most will·be able to see how it works. If you have any questions, please feel free to ask.
It will run on a Prop Demo Board with a simple button wired to Pin 7 pulled high to 3.3v with a 10K resistor. It uses the TV out.
Here is a link to to display running on the actual bike... Link
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim Fouch
FOUCH SOFTWARE
I've had several people ask for the source to see how it was done. I've posted it to the OBEX for all to see.
It shows...
- How to easily assign color palettes to screen tiles.
- Create a grid overlay to see where the object fall into place within the tiles.
- How to get around the double buffering if you're low on RAM.
- How to create a tachometer·type display·by using vector graphics.·
- Create smoothly updating displays by tracking the changes in the data behind the display. (Only change what you have to)
I know it's not documented the best, but most will·be able to see how it works. If you have any questions, please feel free to ask.
It will run on a Prop Demo Board with a simple button wired to Pin 7 pulled high to 3.3v with a 10K resistor. It uses the TV out.
Here is a link to to display running on the actual bike... Link
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim Fouch
FOUCH SOFTWARE
Comments
Hmmm... you could for example use the background color to indicate problems by turning it yellow - orange - red for overtemp/over-rev etc...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com E-mail: mikronauts _at_ gmail _dot_ com 5.0" VGA LCD in stock!
Morpheus dual Prop SBC w/ 512KB kit $119.95, Mem+2MB memory/IO kit $89.95, both kits $189.95 SerPlug $9.95
Propteus and Proteus for Propeller prototyping 6.250MHz custom Crystals run Propellers at 100MHz
Las - Large model assembler Largos - upcoming nano operating system
I haven't tried changing the Tile Palettes after the fact, but I don't see why you couldn't. It would be a lot faster then painting a new box and repainting the contents of the highlighted area.
Also could be a quick way to flash the whole screen. Or even have a day time/night time background/foreground colors.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim Fouch
FOUCH SOFTWARE
I have been waiting for "like 3+ years" to see it.
I have been wanting to try it out on on of Tim's·NTSC LCD displays.
Jim
A great demo, with lots of useful code to copy!
I loved the link, with the audio track as well it felt like being on the bike.
Over a 'ton' too ...
T o n y