3C should be the register you write to, but for displays you normally write commands. Registers are more used in sensors.
Try
I2CBUS.GetInstance().Write(_slaveConfig, I2CCommand, I2CTimetout);
You probably got a point, the code I've found seems to be for a sensor. One thing doh: the I2CCommand, what is it?
Instead of WriteRegister i could simply use Write ->
public int Write(I2CDevice.Configuration config, byte[] writeBuffer, int transactionTimeout) { // Set i2c device configuration. _slaveDevice.Config = config; // create an i2c write transaction to be sent to the device. I2CDevice.I2CTransaction[] writeXAction = new I2CDevice.I2CTransaction[] { I2CDevice.CreateWriteTransaction(writeBuffer) }; lock(_slaveDevice) { // the i2c data is sent here to the device. int transferred = _slaveDevice.Execute(writeXAction, transactionTimeout); // make sure the data was sent. if (transferred != writeBuffer.Length) throw new Exception("Could not write to device."); return transferred; } }
?
Think I've already tried this without luck.