Results 1 to 3 of 3

Thread: Visual Basic & LCD

  1. #1
    Low Bitrate farolfo's Avatar
    Join Date
    Apr 2004

    Visual Basic & LCD


    Someome have a sample code to drive a lcd 40x4 lines HD 44780 connected to lpt in Windows Xp. Thand You...

  2. #2
    Low Bitrate
    Join Date
    Feb 2004
    Check out for VB friendly LCD displays (and servos, and relays and other fun stuff)

  3. #3
    Maximum Bitrate starfox's Avatar
    Join Date
    May 2002

    VB6, HD44780 LCDs

    Instead of reinventing the wheel, try this.

    This is the module which i wrote for Xipe (my custom HD44780 display app). It has a dependency: dlportio from scientific software which lets you read and write directly to an address (the parallel port), and it assumes that you have your LCD wired up in "winamp" style wiring.

    It won't work for your 40x4 LCD without modifications, you have to set one of the Parport pins high to alternate between the two HD44780 controllers on your LCD.

    It's ported from Markus's Winamp LCD plugin, so it's a derivative work and hence falls under GPL.

    How to use it:
    LCD_SetPosition(SomeX, SomeY)

    You can create custom chars as well, just put in ascii characters 0 to 7 in the string.

    Custom chars are created like this:
    LCD_CreateCustomChar(Char number between 0 to 7, strChar)
    strChar is a comma delimited set of 8 numbers (one for each line), with the least significant 5 bits representing the cell row data.

    You may need to change:

    depending on how fast your CPU is and how fast your HD44780 controllers read, so you don't write to the device faster than it can grab the data.

    Good luck
    Attached Files Attached Files

Similar Threads

  1. basic lcd controller questions
    By vilagefool in forum LCD/Display
    Replies: 3
    Last Post: 03-04-2004, 06:42 PM
  2. Radio visual basic BT878
    By NEO in forum Software & Software Development
    Replies: 0
    Last Post: 10-31-2003, 05:28 PM
  3. Adding Gamepad input in Visual Basic
    By UBCSJonw in forum Software & Software Development
    Replies: 1
    Last Post: 09-10-2003, 09:00 PM
  4. i need a visual basic OCX for an generic infrared receiver
    By babas151 in forum Software & Software Development
    Replies: 9
    Last Post: 04-20-2002, 03:10 AM
  5. visual basic programming
    By mr0range in forum Software & Software Development
    Replies: 1
    Last Post: 11-07-2001, 05:39 PM


Posting Permissions

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