Shop OBEX P1 Docs P2 Docs Learn Events
New: 640x240 VGA graphics driver — Parallax Forums

New: 640x240 VGA graphics driver

Bill HenningBill Henning Posts: 6,445
edited 2007-02-05 07:59 in Propeller 1
Hi guys,

I took a bit of a break from fighting with an ARM system, and I modified the 512x384 graphics driver so that it will work with my 640x480 limited small VGA monitor [noparse]:)[/noparse]

I've uploaded it to the Propeller Object Exchange, but until it gets approved, you can download it from my site (link below).

Enjoy,

Bill

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers

Comments

  • DogPDogP Posts: 168
    edited 2007-02-05 06:17
    Is that 640x480 full height interlaced, or is it actually 640x240 (sorta widescreen). Hopefully I'll have my chip tomorrow or Tuesday and I'll get to try some of these drivers out [noparse]:)[/noparse] .

    DogP
  • Bill HenningBill Henning Posts: 6,445
    edited 2007-02-05 07:17
    Full height, not interlaced.

    As far as a monitor is concerned, it is 640x480 standard VGA

    As the propeller does not have enough memory for a full 640x480 bitmap, every line is shown twice, resulting in a 640x240 display

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.mikronauts.com - a new blog about microcontrollers
  • DogPDogP Posts: 168
    edited 2007-02-05 07:39
    Oh... yeah, I was thinking interlaced because of lack of memory... but yeah, duplicated lines works too [noparse]:)[/noparse] .

    Pat
  • Bill HenningBill Henning Posts: 6,445
    edited 2007-02-05 07:59
    I just made a better plot pixel routine for it

    [noparse][[/noparse]code]
    PUB plot(x,y,v)
    · if x => 0 and x < 640 and y => 0 and y < 240
    ··· if v
    ····· pixels[noparse][[/noparse]y * 20 + x >> 5] |= |< x
    ··· else
    ····· pixels[noparse][[/noparse]y * 20 + x >> 5] &= ! |< x


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.mikronauts.com - a new blog about microcontrollers
Sign In or Register to comment.