Interfacing with Arduino I2C LCD


Closed Thread
Results 1 to 40 of 48

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    So I'm not missing a label then, the code just isn't terminated "properly".

    I kept going through it thinking I was missing something obvious.

    Robert

  2. #2
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    Quote Originally Posted by Demon View Post
    I kept going through it thinking I was missing something obvious.
    Robert
    Not that I can see but then I always wonder if I am missing something whether it is obvious or not.

    Code:
    LCD_CMD = $44   
    GOSUB LCDWRITE
    LCD_CMD = $48
    GOSUB LCDWRITE
    LCD_CMD = $44   
    GOSUB LCDWRITE
    LCD_CMD = $45
    GOSUB LCDWRITE
    LCD_CMD = $44   
    GOSUB LCDWRITE
    LCD_CMD = $4C
    GOSUB LCDWRITE
    I have been trying to work out what the $44 do because they are not printed on the screen.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    Can't find info on $44, and can't see what's in this zip on my phone:

    https://bitbucket.org/fmalpartida/ne...stal/downloads

    I'd be curious to see all the stuff in version 1.2.1.

    Robert

  4. #4
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    Quote Originally Posted by Demon View Post
    Can't find info on $44, and can't see what's in this zip on my phone:

    https://bitbucket.org/fmalpartida/ne...stal/downloads

    I'd be curious to see all the stuff in version 1.2.1.

    Robert
    Compare this code with Darrel's the one obvious issue is that the LCD is in 4 bit mode which requires the upper nibble and lower nibble to be sent separately. One other concern is that of setting the RS bit for data mode which is done once after initialisation. Does this not need doing every time a data nibble is sent?

  5. #5
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    Is it pure coincidence that all the upper nibbles are $4?

  6. #6
    Join Date
    Jun 2013
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    I believe this may be my first post to this forum...

    Has anyone figured more of this out? I finally got my I2C serial adapter for the 1602 LCD to do something at least.

    It was indeed very helpful to see the original code posted. Somehow my default address is $40.

    When I use the code provided, I do get the display to light up and display "HELLO RCG! but when I try to change the initials to DHD, using the hex codes for D = $44, H=$48, and D=$44, I get THD in the display.

    I am also looking for a bit more help with the control characters, and why the LCDWRITE routine needs 3 i2cwrite commands.

    Thanks from noob Dave

  7. #7
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD


Similar Threads

  1. Another Arduino clone that uses a PIC
    By dhouston in forum PBP & Amicus18
    Replies: 0
    Last Post: - 7th March 2012, 19:14
  2. Arduino ?
    By Michael in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 13th September 2011, 19:50
  3. How do I operate an Arduino I2C LCD
    By menta in forum General
    Replies: 8
    Last Post: - 13th July 2011, 02:28
  4. Arduino
    By muddy0409 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st July 2011, 19:11
  5. ARDUINO? -- what is it?
    By Michael in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th August 2009, 00:19

Members who have read this thread : 4

You do not have permission to view the list of names.

Posting Permissions

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