Results 1 to 10 of 10

Thread: DOS C++ Program: How to output text to a 40x4 LCD

  1. #1
    Variable Bitrate
    Join Date
    Apr 2002
    Location
    Charlotte, NC
    Posts
    315

    DOS C++ Program: How to output text to a 40x4 LCD

    I'm writing a program (that runs under DOS) to control my carPC, and I've got a 40x4 character LCD wired to the parallel port. What I need is a way to output information to the LCD, something like cout. But for the LCD, you'd also need to specify a line and column. Maybe a function like this:

    LCDout("message here",3,10);

    that would put the text "message here" with the m in message starting on the 3rd line and 10th column.

    If doing strings is too hard, I guess it'd be ok if I had to do it one character at a time.

    Has anyone done this already and could give me their code? Or help me write some of my own?
    Silver 1999 Nissan Pathfinder!
    Completion: [*********-] 90%
    Everything working! Mobile MP3s ROCK!
    LEFT TO DO: Improve power on circuit, fix slow boot time

    - 550mhz PIII on Abit BH6
    - 128MB RAM
    - 40x4 Backlit Character LCD
    - 17 key numeric keypad - Repainted buttons
    - 2.1GB laptop drive for OS
    - 4.3GB drive for MP3s

    http://www.mp3car.com/usersites/bombboyer/ Redesigned, new pics!

  2. #2
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    first off, serial or parallel ?
    Brand ? Controller ?
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  3. #3
    Variable Bitrate peter3's Avatar
    Join Date
    Feb 2001
    Location
    The Netherlands (deventer)
    Posts
    238
    lcdprint.exe let's you put any kind of text on a lcd
    search for it or give me a mail
    PETER - THE NETHERLANDS - DEVENTER
    sproggy 2.8,epia c3-800,20Gb 2.5", 5.6"lcd,touchscreen.

  4. #4
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Originally posted by peter3
    lcdprint.exe let's you put any kind of text on a lcd
    search for it or give me a mail
    that's not what he's looking for
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  5. #5
    Variable Bitrate
    Join Date
    Apr 2002
    Location
    Charlotte, NC
    Posts
    315
    frodo, it's a parallel LCD wired "standardly". It's got a HD4 something something controller
    Silver 1999 Nissan Pathfinder!
    Completion: [*********-] 90%
    Everything working! Mobile MP3s ROCK!
    LEFT TO DO: Improve power on circuit, fix slow boot time

    - 550mhz PIII on Abit BH6
    - 128MB RAM
    - 40x4 Backlit Character LCD
    - 17 key numeric keypad - Repainted buttons
    - 2.1GB laptop drive for OS
    - 4.3GB drive for MP3s

    http://www.mp3car.com/usersites/bombboyer/ Redesigned, new pics!

  6. #6
    jol
    jol is offline
    FLAC jol's Avatar
    Join Date
    Jan 2002
    Location
    Mellansel, Sweden
    Posts
    1,299
    well, it could be what he is looking for, first make a .txt, then use lcdprint, then re-write the text, and then use lcdprint again..

  7. #7
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  8. #8
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  9. #9
    Variable Bitrate
    Join Date
    Apr 2002
    Location
    Charlotte, NC
    Posts
    315
    thanks for the links frodo, but I'm not very good at C++ at all in terms of accessing hardware.

    http://ee.cleversoul.com/lcd_project.html

    that link helped in that it provided some source code, but it's all for a 20x4 LCD. How can I modify it for a 40x4?
    Silver 1999 Nissan Pathfinder!
    Completion: [*********-] 90%
    Everything working! Mobile MP3s ROCK!
    LEFT TO DO: Improve power on circuit, fix slow boot time

    - 550mhz PIII on Abit BH6
    - 128MB RAM
    - 40x4 Backlit Character LCD
    - 17 key numeric keypad - Repainted buttons
    - 2.1GB laptop drive for OS
    - 4.3GB drive for MP3s

    http://www.mp3car.com/usersites/bombboyer/ Redesigned, new pics!

  10. #10
    Maximum Bitrate KyleYankan's Avatar
    Join Date
    Mar 2005
    Posts
    491
    Does anyone know of a program to do the dos idea, but with a serial 24x8 PJRC screen?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •