Sample Palette Graphics Demo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: Jim Fouch, created: 2013-04-16 | updated: 2013-05-20

This is a sample of a spin project I created sometime ago to create a replacement graphical instrument display.

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.

 

Original File Upload
AttachmentSize
Package icon GraphicsPaletteHelper10.zip43.72 KB

Comments

[originally posted by Anonymous on 2011-09-19 14:30:49] Works well.. if you want to disable the GRID from inside the code or if you dont have a button with a pullup resistor on "showgrid" pin, just goto this statement above the "PRI FixedDec(Value)|i,k, V" and look for this "IF" statement:"if INA[ShowGrid]==0". Change the 0 to 1 and load the modified code. Also, it looks better on big TV's in interlace mode "%0010 'mode" in tvparams DAT section. Video DAC on pins 8,9,10? change "long %001_0101 'pins" to "%001_0000". then load your program to RAM. HTH, Rinkscustoms