Shop OBEX P1 Docs P2 Docs Learn Events
simple VGA text only driver — Parallax Forums

simple VGA text only driver

CrosswindsCrosswinds Posts: 182
edited 2010-01-30 00:02 in Propeller 1
Hello!

Im outgrown my LCD´s , and thought it would be fun to play around with a old TFT display.

I only need to show text. and would like to have a simple VGA text driver, if there is any?



Thanks
Daniel

Comments

  • RaymanRayman Posts: 14,876
    edited 2010-01-26 00:29
    Yep, look for "VGA_text_demo" in the the Prop tool "Library"...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • CrosswindsCrosswinds Posts: 182
    edited 2010-01-26 00:35
    Thanks for your quick answer!

    I see! Seems to be simple enough [noparse]:)[/noparse]

    Is there by any chance some reference or a tutorial to use it?

    Just to see how to move the cursor around, and maybe even change colors of the text..
  • localrogerlocalroger Posts: 3,452
    edited 2010-01-26 01:10
    @Crosswinds -- it's really dead simple, just look at the vga_text object source code for the PUB OUT() routine, it documents the control characters that clear the screen, set the X and Y position, drawing color, and so on. You also need to give it the basepin, which is the lowest pin of the 6 resistor VGA voltage divider network on your board. On a demoboard it's pin 16. Also check out the vga_text_demo.spin (included with proptool) which shows how to start the driver and feed it data.
  • CheyenneCheyenne Posts: 3
    edited 2010-01-29 23:56
    I also want to start mucking around with displaying text on a VGA display. I was hoping someone could verify for me the connections on the PPDB. I have relied on the demo board for a comparrison of the pin outs and, assuming I use pins 8-15, I came up with the following:

    Pin 8: V
    Pin 9: H
    Pin 10: B0 (470Ohm)
    Pin 11: B1 (240Ohm)
    Pin 12: G0 (470Ohm)
    Pin 13: G1 (240Ohm)
    Pin 14: R0 (470Ohm)
    Pin 15: R1 (240Ohm)

    Thanks in advance!
  • CrosswindsCrosswinds Posts: 182
    edited 2010-01-30 00:02
    I have just had some time to play around with the vga_text driver just now, and i must say that it is great!



    It will be very simple for me to merge my current project that builds on a LCD to use an old TFT vga screen, it will be so cool, and im able to display so much information to the user!





    The power of the prop is just unbelievable!
Sign In or Register to comment.