Netduino home hardware projects downloads community

Jump to content

The Netduino forums have been replaced by new forums at This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

N2 + I2C 1602 LCD

Netduino2 LCD

  • Please log in to reply
1 reply to this topic

#1 FredOrJoeBlogs


    New Member

  • Members
  • Pip
  • 4 posts

Posted 11 August 2014 - 09:11 PM



I have got one of the el'chepo 1602 LCD with the I2C backpacks. I have got it working under Python on a Raspberry PI, so I know its not a hardware issue.  I have ported the python to C# and the adapted it to work with the SoftwareI2C from Al Moyle and the SoftwareI2CBus from "TechWithDave"


Everything seems to be working well SetPosition (1,0) goes to the first character on the top line.

When I try and write some text to the display, the text is shifted right by 10 characters.  i.e Instead of "Hello World!" I get "Hello ".


Has anyone seen anything similar? Or can anyone spot my stupid mistake?


Hopefully the code should be attached (apart from main which is {LCDDisplay.TestProgram();} )


Thanks in advance


Attached Files

#2 sjmill01


    Advanced Member

  • Members
  • PipPipPip
  • 45 posts
  • LocationSouth Carolina

Posted 13 August 2016 - 11:53 PM

I know this is an old post, but I was fighting getting a LCD to work with I2C until I found this code.  So, I thought I'd post the solution for others.



I found the reason your display was not performing well.  It has some bits set for scrolling.  So, you can add spaces to the end of the text to be sure it scrolls enough.


Or, change this line:

command((byte)Registers.CMD_Entry_Mode | (byte)RegisterOptions.OPT_Increment | (byte)RegisterOptions.OPT_Display_Shift);

to this...

command((byte)Registers.CMD_Entry_Mode | (byte)RegisterOptions.OPT_Increment );

Also tagged with one or more of these keywords: Netduino2, LCD

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.