Hallo,
I have some days are a "Netduino 2". One of my first applications should connect to the I2C bus of an LCD display. I have tried a variety of source code, but all the same error. Even if no connection to the I2C hardware is present, is the same error. What am I doing wrong? Here's my simple code: I2CDevice.Configuration config = new I2CDevice.Configuration (0xDE, 1); I2CDevice device = new I2CDevice (config); I2CDevice.I2CTransaction [] array = new I2CDevice.I2CTransaction [1]; byte [] buffer = new byte [1]; buffer [0] = 0x0C; array [0] = I2CDevice.CreateWriteTransaction (buffer); device.Execute (array, 1000);
>> here comes the error:
'System.ArgumentException' occurred in Microsoft.SPOT.Hardware.dll. " "device.m_xAction": The value of the "m_xAction" can not be retrieved because no information about the containing class is available.