Shop OBEX P1 Docs P2 Docs Learn Events
VGA 1280 x 1024 Tile Driver — Parallax Forums

VGA 1280 x 1024 Tile Driver

cgraceycgracey Posts: 14,133
edited 2006-11-23 08:49 in Propeller 1
Here's a new 1280 x 1024 VGA 4-color tile driver with cursor.

This requires three cogs, or·four with the cursor, and needs about 10KB of tile memory. It provides 80x32 text using the internal ROM font which is very easy to read. It can also do graphics, though this example doesn't show any.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


Chip Gracey
Parallax, Inc.

Comments

  • simonlsimonl Posts: 866
    edited 2006-11-22 12:35
    Chip, that's awsome smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,

    Simon
    www.norfolkhelicopterclub.co.uk
    You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
  • NewzedNewzed Posts: 2,503
    edited 2006-11-22 13:12
    Outstanding, Chip.

    Suppose I want to position some text at 2,6.· What command would I use?

    I tried to print a string and I wrote:

    print_string("Does this work?")

    The Editor asked for a ) after D.· How do I print a string?

    Thanks

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Don't have VGA?

    Newzed@aol.com
    ·
  • NewzedNewzed Posts: 2,503
    edited 2006-11-22 13:19
    Never mind about printing a string, Chip - I figured it out.· Still need the positioning command.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Don't have VGA?

    Newzed@aol.com
    ·
  • NewzedNewzed Posts: 2,503
    edited 2006-11-22 16:53
    One more query, Chip.

    If I comment out the bixes and use the screen just for text display, the text defaults to cyan on blue.· If I precede the text with

    print($114)

    the text prints white on black, but it is black only where the text is - the balance of the screen is the default blue.

    So, how can I get, for instance, yellow on a solid blue background.· I played around with the values· for blue in the VGA Colors DAT list and was almost able to get white on blue, except there·were a lot of black commas mixed in with the text.

    Whenever you have the time.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Don't have VGA?

    Newzed@aol.com
    ·
  • NewzedNewzed Posts: 2,503
    edited 2006-11-22 16:57
    Correction, Chip.· It was the white I was playing with, not the blue.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Don't have VGA?

    Newzed@aol.com
    ·
  • cgraceycgracey Posts: 14,133
    edited 2006-11-22 17:19
    I'll later augment these VGA tile drivers with an object which manages text printing, box drawing, and so on. Right now, these are pretty much just raw display mechanisms.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Chip Gracey
    Parallax, Inc.
  • NewzedNewzed Posts: 2,503
    edited 2006-11-22 17:41
    OK - I can wait.· I'll go make a PC board on SuperMill or something.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Don't have VGA?

    Newzed@aol.com
    ·
  • NewzedNewzed Posts: 2,503
    edited 2006-11-22 22:50
    Chip, I love this program.· For me, the font is just perfect.· I combined it with portions of Mike Green's OS and am communicating directly with two Stamps, A and B,·via RF.· I'm also communicating indirectly with a third Stamp.· I send the instructions to Stamp B and it relays the instructions to Stamp C.· C controls a servo, so I had to do it that way so the servo could run without tying up Stamp B.· Stamp C listens for a "Stop" serin from Stamp B during the 20ms pause between servo pulses.

    Looking forward to your augmentation so I can "pretty up" the display.

    Sid



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Don't have VGA?

    Newzed@aol.com
    ·
  • Ym2413aYm2413a Posts: 630
    edited 2006-11-22 22:55
    1280 x 1024 rez?! Holy!!! shocked.gif

    I never pictured that would happen anytime soon.
    How in the world did you manage to pull that one off?
  • The CaptainThe Captain Posts: 60
    edited 2006-11-23 05:44
    Because chip is the man from Die another day that never sleeps. He has an IV of caffeine and vitamins. go Chip.
  • GavinGavin Posts: 134
    edited 2006-11-23 07:56
    Very impressive Chip, so with only 3-4 cogs does that mean there is still enough left over to drive another 1280x1024 screen.
    Two display outputs on the prop!!!! Awesome
  • cgraceycgracey Posts: 14,133
    edited 2006-11-23 08:49
    You bet!
    Gavin said...
    ...so with only 3-4 cogs does that mean there is still enough left over to drive another 1280x1024 screen.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Chip Gracey
    Parallax, Inc.
Sign In or Register to comment.