I was never able to consistently connect to the Wiimote extensions. Now that I upgraded to 4.2 firmware, I'm now trying to use the "repeated start bit" feature.
I tried the following code with the Nunchuck but I'm always getting a buffer full of 0xff values (instead of the expected 0x00, 0x00, 0xa4, 0x20, 0x00, 0x00).
var device = new I2CDevice(new I2CDevice.Configuration(0x52, 400)); device.Execute(new I2CDevice.I2CTransaction[] { CreateWriteTransaction(new byte[] { 0x55, }, 0xf0, 1), CreateWriteTransaction(new byte[] { 0x00, }, 0xfb, 1), }, 1000); Thread.Sleep(1000); var buffer = new byte[6]; device.Execute(new I2CDevice.I2CTransaction[] { CreateReadTransaction(buffer, 0xfa, 1), }, 1000);
This is based on the info from http://wiibrew.org/w...ion_Controllers and using the "repeated start bit" methods from http://forums.netdui...rt-bit-support/
Am I doing it right?
EDIT: I'm using 3.3V for the VCC and 2.2K for pullup resistors.