Zitat Zitat von Siro Beitrag anzeigen
Hallo HaWe,
schau mal bitte hier rein:
https://allaboutmcu.wordpress.com/20...is-is-a-draft/

Auszug:

This will not work with the Wii nunchuck, even though we know its write address(which is 52 by the way, A4 in hex).
For the communication to work – after sending the write adress for the first time – “0x40” must be sent before 0.

StartI2C();
IdleI2C();
MasterWriteI2C(0xA4);
MasterWriteI2C(0x40);
MasterWriteI2C(0x00);
StopI2C();

And again for the knockoff versions of the nunchuck it’s different once more,
there are not only one but TWO handshakes this time around, the cheeky bastards:

StartI2C();
IdleI2C();
MasterWriteI2C(0xA4);
MasterWriteI2C(0xF0);
MasterWriteI2C(0x55);
StopI2C();

StartI2C();
IdleI2C();
MasterWriteI2C(0xA4);
MasterWriteI2C(0xFB);
MasterWriteI2C(0x00);
StopI2C();

Siro
das kann doch nicht richtig sein - die Nunchuk adresse ist 0x52, nicht 0xA4 und nicht (DEC) 52 !
0x52 wird ja auch von meinem I2C Scanner erkannt...!

Code:
Scanning at 400k

0  ** 01 02 03 04 05 06 07 -- -- -- -- -- -- -- -- 
1  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
2  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
3  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
4  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
5  -- -- 52 -- -- -- -- -- -- -- -- -- -- -- -- -- 
6  -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 
7  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ** 
Scan result for i2cclock 400k
found: 9 devices
das einzige, wirklich seltsame ist, dass außer x52 immer auch x01...x07 erkannt werden...
(x68 ist ein zusätzlicher MPU6050 zu Testzwecken)