Forum >Replies by pavgud
userhead pavgud
Replies (3)
  • You Reply: Here are the photos of wiring with netduino.
  • You Reply: Here are the photos of wiring with netduino.
  • You Reply: I have problem making this I2C LCD (http://www.dfrobot.c...&product_id=135) to work with netduino. I attached two photos to show the wiring (http://forums.netduino.com/index.php?/topic/1795-i2c-lcd-not-working/). I use the following code:

                I2CDevice lcd = new I2CDevice(new I2CDevice.Configuration(0x27, 400));

                int bytesTransferred = 0;
                string hellow = "hellow";

                System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
                byte[] bytesToSend = encoder.GetBytes(hellow);


                    I2CDevice.I2CTransaction[] writeCommandAction = new I2CDevice.I2CTransaction[]      {I2CDevice.CreateWriteTransaction(bytesToSend) };
                    bytesTransferred = lcd.Execute(writeCommandAction, 1000);

                    Debug.Print("TRANSF> " + bytesTransferred.ToString());
                    Debug.Print("TOSEND> " + bytesToSend.Length.ToString());



    I tried this code (http://code.tinyclr....lcd1602-module/) as well but without success.

    When I connect USB to netduino, display's light powers on and the first line can be seen (Powered.jpg). Beyond that nothing happens.