AnsweredAssumed Answered

I2C send data, wm+

Question asked by sokolc.anton on Jan 18, 2012
Latest reply on Jan 18, 2012 by sokolc.anton
I need to connect wm+ through I2C. I'm now trying to port http://randomhacksofboredom.blogspot.com/2009/07/motion-plus-and-nunchuck-together-on.html this Arduino code.I'm stuck at how to send zero to device.I need to send 0x00 to 0x52(address of wm+).
Is it right?:
void ZeroSending(void)
{
     I2C_GenerateSTART(I2C1,ENABLE);
     I2C_SendData(I2C1,0x52);
     I2C_SendData(I2C1,0x00);
     I2C_GenerateSTOP(I2C1,ENABLE);
}

Outcomes