The hardware I2C on the ATMEGA168 uses the same pins as Analog 4 & 5. So when I2C mode is enabled, these pins get converted to digital signals for the I2C connection and you can no longer use them for analog. Since this is how the ATMEGA168 is built, you can't use other pins for hardware I2C.There were some people working on a software I2C that could use different pins. Search the forums for this.
Does "i2c mode" disable/change other pins?
I was having trouble with todbot's example not properly doing pins 2&3 doing power and ground, but I found the missing parts in Laen's Freqin Wii, thanks for that.// This sets up analog pins 2 and 3 to provide power and ground.byte pwrpin = PC3;byte gndpin = PC2;DDRC |= _BV(pwrpin) | _BV(gndpin);PORTC &=~ _BV(gndpin);PORTC |= _BV(pwrpin);delay(100); // wait for things to stabilizeI think I might end up getting the wiimote for interfacing with puredata or any OSC or midi app. But the wiichuck is great for standalone projects.Left by C60 on March 5th, 2008