cancel
Showing results for 
Search instead for 
Did you mean: 

I2C send data, wm+

wsevendays
Associate II
Posted on January 18, 2012 at 22:53

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);

}

#i2c #motion #wii #wm+
1 REPLY 1
wsevendays
Associate II
Posted on January 18, 2012 at 23:54

I found solution in 

http://forum.elektronika.lt/viewtopic.php?p=743674

 . Now my wm+ works great.