Interfacing with Arduino I2C LCD


Closed Thread
Results 1 to 40 of 48

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Posts
    9


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    Wow, really?

    Seems what I've shared is at least relevant considering this question has been asked before... in light of the answers offered.

    This is the documentation section, right?

    My code is embarrassing. I'm sure anyone can read what I've posted and come up with much better code then I did. Frankly I'm not up for the criticism about how I wrote it... seeing your comments, I'm glad I didn't post it.

  2. #2
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    Frankly I'm not up for the criticism about how I wrote it... seeing your comments, I'm glad I didn't post it.
    Norohs,
    so what was the point of your post?? Seems reasonable to me to want to see your code.

    I've been around here a while and have not ever noticed "criticism" regarding someone elses code. Constructive help, yes. Suggestion on how to improve, yes.

    If someone posts here with a real intent to learn and ask for help... they always get it.

    You, on your third post, have managed to be rude and condecending to someone here who has over 5 thousand posts to their credit.
    No the sheer number of posts does not grant someone special status. But why would you assume someone is going to criticize your code??

    Strange way to start a life in a fourm
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    Quote Originally Posted by Heckler View Post
    You, on your third post, have managed to be rude and condecending to someone here who has over 5 thousand posts to their credit.
    None of which have been critical or condescending.

  4. #4
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    Quote Originally Posted by dhouston View Post
    None of which have been critical or condescending.
    Agreed +1.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    Norohs,

    If you have seen any of my code you will see that I am the last on to criticize others code. You original post seemed like it could have been an advertisement, if it was it should be moved to another section.

    Being it was to show a project working, then posting your code could help someone. Do not worry about what your code looks like or how inefficient you think it is. As long as it works. Sometimes that is all someone needs.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Oct 2012
    Posts
    9


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    it should be moved to another section.
    Feel free to move it.

  7. #7
    Join Date
    Oct 2012
    Posts
    9


    Did you find this post helpful? Yes | No

    Default Re: Interfacing with Arduino I2C LCD

    Code:
    'ARDUINO IIC LCD GY-LCD-V1
    'PIC 12F629
    'PRINTS " HELLO RCG!_"
    Define OSC 20               
    DEFINE I2C_SLOW 1           
    CMCON = $7           
    OPTION_REG.7 = 0
    C VAR GPIO.1         
    D VAR GPIO.0
    ADDR VAR BYTE           
    ADDR = $40
    CMD VAR BYTE
    LCD_CMD VAR BYTE            
    E VAR LCD_CMD.BIT4    
    RS VAR LCD_CMD.BIT6
    E=0:RS=0
    LCD_CMD = 0
    PAUSE 1000                  
    LCD_CMD = $2 
    GOSUB LCDWRITE     
    GOSUB LCDWRITE       
    LCD_CMD = $8  
    GOSUB LCDWRITE       
    LCD_CMD = $0  
    GOSUB LCDWRITE
    LCD_CMD = $E
    GOSUB LCDWRITE       
    LCD_CMD = $0  
    GOSUB LCDWRITE
    LCD_CMD = $6
    GOSUB LCDWRITE       
    RS=1  
    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
    LCD_CMD = $44   
    GOSUB LCDWRITE
    LCD_CMD = $4C
    GOSUB LCDWRITE
    LCD_CMD = $44   
    GOSUB LCDWRITE
    LCD_CMD = $4F
    GOSUB LCDWRITE
    LCD_CMD = $42   
    GOSUB LCDWRITE
    LCD_CMD = $40
    GOSUB LCDWRITE
    LCD_CMD = $45   
    GOSUB LCDWRITE
    LCD_CMD = $42
    GOSUB LCDWRITE
    LCD_CMD = $44   
    GOSUB LCDWRITE
    LCD_CMD = $43
    GOSUB LCDWRITE
    LCD_CMD = $44   
    GOSUB LCDWRITE
    LCD_CMD = $47
    GOSUB LCDWRITE
    LCD_CMD = $42   
    GOSUB LCDWRITE
    LCD_CMD = $41
    GOSUB LCDWRITE
    RETURN
    LCDWRITE:
    I2CWRITE D,C,ADDR,[LCD_CMD]
    E=1
    I2CWRITE D,C,ADDR,[LCD_CMD]
    E=0
    I2CWRITE D,C,ADDR,[LCD_CMD]
    RETURN
    END

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