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 light powers on and the first line can be seen (Powered.jpg). Beyond that nothing happens.