Shop OBEX P1 Docs P2 Docs Learn Events
PropBasic: VGA driver 2 color, palette every 8x8 pixels — Parallax Forums

PropBasic: VGA driver 2 color, palette every 8x8 pixels

BeanBean Posts: 8,129
edited 2010-06-23 17:10 in Propeller 1
This is a VGA driver that is kind of like the Timex 2068 / Sinclair spectrum.

It has 320 pixel across and 240 pixels up and down.

Each set of 8x8 pixels has it's own foreground and background color (0 to 63).

When I get the character set included it will be 40 x 30 text mode.

I'll update this when I get more included.

It took a bit of trickery to get the timing fast enough for a different palette every 8 pixels, but I got it working.

Nice thing is it only uses 12_000 bytes of hub ram.

[noparse][[/noparse]EDIT]·I updated the driver to a PropBasic .lib file.

Bean
·

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]

Post Edited (Bean) : 6/23/2010 4:44:48 PM GMT

Comments

  • KyeKye Posts: 2,200
    edited 2010-06-18 22:18
    Bean would you like a copy of my 40x30 tile, 16x16 pixels per tile and 4 color per tile VGA driver? It can use the internal propeller rom font and such. It also can draw a 16x16 pixel 1 color mouse cursor. That is pixel locked.

    The last time I looked at the code however I commented alot of it out to work on different parts of the functionality but I can give you an older working version to play arround with. I've scheduled some time to finish the code next week.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • HollyMinkowskiHollyMinkowski Posts: 1,398
    edited 2010-06-19 18:12
    Bean: Very nice.

    Kye: Can't wait to see your code after you finish it.
  • BeanBean Posts: 8,129
    edited 2010-06-23 16:40
    I have updated the driver to a PropBasic .lib file and updated the demo too.

    I've seen some of the spectrum games make very good use of this type of graphics. And with 64 colors even better graphics should be possible.

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.
    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There are two rules in life:
    · 1) Never divulge all information
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
  • HollyMinkowskiHollyMinkowski Posts: 1,398
    edited 2010-06-23 17:10
    Nice work Bean.
    I'm off to get the new demo and files.
Sign In or Register to comment.