Shop OBEX P1 Docs P2 Docs Learn Events
VGA_Text.spin with higher resolution ? — Parallax Forums

VGA_Text.spin with higher resolution ?

Chris MicroChris Micro Posts: 160
edited 2009-06-09 07:39 in Propeller 1
Hello together,

I like the VGA_Text.spin Object because it is so easy to work with.
I like the principle that the cursor position can be set with $0a,xpos and 0b,ypos. And also the possibility to set for each character its own color.
But the resolution of 32x15 characters is often not sufficient for my projects, so I'm looking for a solution.
Has someone written an object with the same functions and higher resolution?

I know, there is the VGA-Hi-Res Object, but as far as I understand it is only possible to set the color for a whole row and not for each character.

Thanx for help,
chris

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-06-07 17:21
    @Chris:

    I've been playing with this myself a while back.
    See if the attached gets you a little closer.

    OBC

    Rename with .zip. Must have forgotten to pay my MIME-type bill this month.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.


  • Chris MicroChris Micro Posts: 160
    edited 2009-06-07 17:42
    Thank you smile.gif I will try it. Does BST mean I need the BST assembler?
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-06-07 17:50
    Nah, it was just the tool I'm using on my linux box.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • RaymanRayman Posts: 14,833
    edited 2009-06-08 00:09
    Look on the first link on this page:

    http://www.rayslogic.com/Propeller/Users/3rdParty.htm

    There's an XGA 64x24 text (1024x768 pixel) driver there that I use a lot...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • Chris MicroChris Micro Posts: 160
    edited 2009-06-08 18:42
    Unfortunately none of the graphic drivers fits.

    @Oldbitcollector
    I took a look at that. But my monitor has only a resolution of 1024x768

    @Rayman
    I knew this graphic driver. It looks a little bit complicate to me and I think it needs a lot of cogs.

    Both drivers are not compatible to the simple vga-text.spin where i can set the position and the color of a character with

    $0a->xpos
    $0b->ypos
    $0c->color

    I think that is the simpliest way of controlling graphics and I wonder that no one yet expanded the vga-text.spin for higher resolution.
  • RaymanRayman Posts: 14,833
    edited 2009-06-08 19:11
    I think you'll find that it's much easier to directly control the current position like this:

    row:=(the row you want)
    col:=(the col you want)
    [noparse][[/noparse]color:=(the color you want)]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • Chris MicroChris Micro Posts: 160
    edited 2009-06-09 04:37
    Hi Rayman, you are right.

    For my application I would need the other solution. In the application the propeller is used as display driver and gets its characters over the serial line.
    For this case it is necessary that the controll characters are included.

    The reason why I opened this post was that I didn't want to dig to deep into the graphic drivers functions and hoped that I could get a driver which is compatible to the vga-text.spin.
    The advantage would be able to simply exchange the drivers and keep all the known funcitons. If I understand it right, the most drivers with the higher resolution need more cogs.
    I think a lot of people would be happy with a larger resolution than 32x15 characters.

    cheers,
    chris
  • Chris MicroChris Micro Posts: 160
    edited 2009-06-09 07:39
    In the attachment you will find a vga_text_hires.spin which can replace the vga_text.spin. It displays 64x24 characters. I simple mixed together different sources.

    The characters have double height. Can someone give me a hint how to implement single height characters?
Sign In or Register to comment.