- Netduino Forums
- → kersten's Content
kersten's Content
There have been 9 items by kersten (Search limited from 26-April 23)
#48021 I2C on Netduino 1 not working
Posted by kersten on 04 April 2013 - 03:38 PM in Netduino 2 (and Netduino 1)
#47353 I2C on Netduino 1 not working
Posted by kersten on 18 March 2013 - 09:16 PM in Netduino 2 (and Netduino 1)
#47351 I2C on Netduino 1 not working
Posted by kersten on 18 March 2013 - 08:59 PM in Netduino 2 (and Netduino 1)
#47335 I2C on Netduino 1 not working
Posted by kersten on 18 March 2013 - 05:09 PM in Netduino 2 (and Netduino 1)
#47328 I2C on Netduino 1 not working
Posted by kersten on 18 March 2013 - 02:03 PM in Netduino 2 (and Netduino 1)
#47195 I2C on Netduino 1 not working
Posted by kersten on 14 March 2013 - 05:47 PM in Netduino 2 (and Netduino 1)
#47182 I2C on Netduino 1 not working
Posted by kersten on 14 March 2013 - 12:47 PM in Netduino 2 (and Netduino 1)
http://www.lcd-modul.../edip160-7e.pdf
The connection to the I2C EEPROM works.
The code to the LCD has been modified with the length byte and checksum but that does not:
I2CDevice.Configuration config = new I2CDevice.Configuration(0x6F, 100); //0xDE
I2CDevice device = new I2CDevice(config);
I2CDevice.I2CTransaction[] array = new I2CDevice.I2CTransaction[2];
Encoding code = Encoding.UTF8;
byte[] text = code.GetBytes("#DL" + "n"); // clear the display
byte[] buffer = new byte[text.Length+3];
buffer[0] = (byte)(0x11); // DC1
buffer[1] = Byte.Parse(text.Length.ToString());
int bcc = buffer[0] + buffer[1];
byte i = 0;
while (i < text.Length) { bcc = bcc + (byte)text[i]; i++; }
text.CopyTo(buffer, 2);
buffer[text.Length + 2] = (byte)bcc; // checksum
array[0] = I2CDevice.CreateWriteTransaction(buffer);
byte[] ack = new byte[1];
array[1] = I2CDevice.CreateReadTransaction(ack); // 0x06 should be returned
int count = device.Execute(array, 100);
Debug.Print("count: " + count.ToString());
#47156 I2C on Netduino 1 not working
Posted by kersten on 13 March 2013 - 09:13 PM in Netduino 2 (and Netduino 1)
#47106 I2C on Netduino 1 not working
Posted by kersten on 12 March 2013 - 11:39 PM in Netduino 2 (and Netduino 1)
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.
- Netduino Forums
- → kersten's Content
- Privacy Policy