Using this device:
1. http://www.amazon.co...eywords=lcd i2c
I've converted/ported the driver from here to c#:
I've also referenced some code from here:
I tested the device on an Arduino with the sample code from the drivers in the 2nd link. It works. This device has a different pin mapping than link 3 which is allowed with the arduino driver. I ported this over to c#.
It kind of works...but something is not totally right. I am still able to turn off the backlight and I WAS able to set and move the cursor, but I am not sure what happened and now It's not taking any commands..Yet, I can still control the backlight. When the cursor was working, I was able to send text to the display, but it only worked one time until I restarted the netduino. Now, Only backlight can be controlled. Code Attached. I've got 4.9k pull-ups on the System..I've also tried pulling up to both 3.3 and 5v with no change.
(The code is a work in progress, and will be commented properly when completed)
Also attached is the modified I2C bus class that I use(and have used with other devices)
I2CBus.cs 2.66KB 4 downloads
Update: I fixed a few kinks in the code and it's working! Code Attached
LCD.cs 14.81KB 6 downloads
I'll be updating the code to implement more of the methods from the arduino driver and will post in the projects forum.