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
    2,837


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    Just curious where RETURN right before LCDWRITE subroutine returns to?

    Don't have one to test.

    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
    Just curious where RETURN right before LCDWRITE subroutine returns to?

    Don't have one to test.

    Robert
    From what I have read the code is correct in that it will print to the LCD on a one shot basis then return to nowhere.

    Return to nowhere?

    Does anyone have one to test?

    Having used serial LCDs which were easy to use by sending ascii commands and data using serout2 these look very difficult. I just wonder why make something difficult when there is an easier way.

    I have done more research and I believe that all Arduino I2C LCDs are not the same. I guess it depends on the manufacturers implementation and the chips used on the backpack.

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


    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

  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
    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.

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,837


    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

  6. #6
    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?

  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

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

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