Hi
Ich versuche Daten per I2C, von Netduino aus, zu senden.
Nur meldet das Visual Studio immer folgenden Fehler:
Eine nicht behandelte Ausnahme des Typs "System.ArgumentException" ist in Microsoft.SPOT.Hardware.dll aufgetreten.
Hier mein Code:
Code:
I2CDevice I2C = new I2CDevice(new I2CDevice.Configuration(0xDE, 100));
I2CDevice.I2CTransaction[] Actions = new I2CDevice.I2CTransaction[1]
{
I2CDevice.CreateWriteTransaction(new byte[] { 0x11 })/*,
I2CDevice.CreateWriteTransaction(new byte[] { 0x0a }),
I2CDevice.CreateWriteTransaction(new byte[] { 0x1b }),
I2CDevice.CreateWriteTransaction(new byte[] { 0x44 }),
I2CDevice.CreateWriteTransaction(new byte[] { 0x4c }),
I2CDevice.CreateWriteTransaction(new byte[] { 0x1b }),
I2CDevice.CreateWriteTransaction(new byte[] { 0x47 }),
I2CDevice.CreateWriteTransaction(new byte[] { 0x44 }),
I2CDevice.CreateWriteTransaction(new byte[] { 0x00 }),
I2CDevice.CreateWriteTransaction(new byte[] { 0x00 }),
I2CDevice.CreateWriteTransaction(new byte[] { 0xef }),
I2CDevice.CreateWriteTransaction(new byte[] { 0x7f }),
I2CDevice.CreateWriteTransaction(new byte[] { 0xda })*/
};
int result = i2c.Execute(Actions, 100);
Woran kanns liegen? Ich denke das es nicht der Code selbst ist.
Lesezeichen