second post, first question...
I bought a 4-digit-shield and its a great device.
I want to set single LEDs. Its not so simple because the only way to do this are custom fonts.
OK, i wrote the .NET code after i read the arduino code.
Arduino:
Wire.beginTransmission(_address); // transmit to device Wire.send(0x05); Wire.send(0x80); //this is the address of the first custom character. There are 24 of these. //each digit is 5x7 Wire.send(B1000000); //col1 show only 1 led this is what the 1 is for Wire.send(B0000000); //col2 Wire.send(B0000000); Wire.send(B0000000); Wire.send(B0000000);//col5 all leds off
Netduino:
byte[] fontA = new byte[] { 0x05, 0x80, 40, }; ds.device.Execute(new I2CDevice.I2CTransaction[] { I2CDevice.CreateWriteTransaction(fontA) }, ds.i2ctimeout); ds.device.Execute(new I2CDevice.I2CTransaction[] { I2CDevice.CreateWriteTransaction(new byte[] { (byte)MatrixUnit.A, 0x80 }) }, ds.i2ctimeout);
The Problem is, i dont know how to send the binary code-command.
Have anyone ideas?
Here a few examples using the 4-digit-shield:
dennisdel.com
Channel9
Thanks.
Greets Jonny