Shop OBEX P1 Docs P2 Docs Learn Events
Sample for working with Graphics.spin — Parallax Forums

Sample for working with Graphics.spin

Jim FouchJim Fouch Posts: 395
edited 2010-01-30 13:14 in Propeller 1
A while ago (Like 3+ years lol.gif ) 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...
  • 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

  • BocephusBocephus Posts: 58
    edited 2010-01-29 21:16
    Jim, this is very impressive! Almost makes me want to add a display to my CRF450R. Thanks for sharing.
  • Bill HenningBill Henning Posts: 6,445
    edited 2010-01-29 21:32
    Nice work!

    Hmmm... you could for example use the background color to indicate problems by turning it yellow - orange - red for overtemp/over-rev etc...
    Jim Fouch said...
    A while ago (Like 3+ years lol.gif ) 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...

    <UL>
    <LI>How to easily assign color palettes to screen tiles.
    <LI>Create a grid overlay to see where the object fall into place within the tiles.
    <LI>How to get around the double buffering if you're low on RAM.
    <LI>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)
    </UL>
    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
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
  • Jim FouchJim Fouch Posts: 395
    edited 2010-01-29 21:38
    Yep. If the tile was the same size of the area you wanted to highlight.

    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
  • hover1hover1 Posts: 1,929
    edited 2010-01-29 21:51
    Thanks for posting Jim,
    I have been waiting for "like 3+ years" to see it. tongue.gif
    I have been wanting to try it out on on of Tim's·NTSC LCD displays.
    Jim
    Jim Fouch said...
    A while ago (Like 3+ years lol.gif ) 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.

  • TonyWaiteTonyWaite Posts: 219
    edited 2010-01-30 13:14
    Hi 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
Sign In or Register to comment.