I'm trying to interface a Wii Nunchuck to a PIC using PBP.
From the info on this page (http://wiibrew.org/wiki/Wiimote/Exte...ollers#Nunchuk), I have written what I think should work, but not having much joy.
However each time I read the 6 bytes i get one of three sets of bytes back (each time I read I get the next set, and then it loops back to the 1st set).Code:'init nunchuck: write $55 to $A400F0 and $00 to $A400FB I2CWRITE i2c_clock_pin,i2c_data_pin,$A4,$00F0,[$55],fail pause 10 i2CWRITE i2c_clock_pin,i2c_data_pin,$A4,$00FB,[$00],fail pause 10 'read 6 bytes from $A40008 I2CREAD i2c_clock_pin,i2c_data_pin,$A4,$0008,[STR datain/6]
Does anyone have any ideas? Has anyone successfully used a nunchuck in PBP?Code:80,FF,7F,7F,7F,7F FF,FF,7F,7F,7F,7F FB,FF,7F,BF,DF,EF





Bookmarks