My Arduino mega wont work with wii nunchuck

A while back i got 2 wii nunchuck adapters to use in future projects and spent a bunch of time trying to figure out why they would not work with my mega.

Last night my friend came by and had his arduino dem with him. I then swapped it out with my mega and uploaded the exact same sketch and everything instantly worked perfect.

So .... Im thinking the problem is either i need to modify the library or something is wrong with one or more analog in pins 2-5.

Has anyone else experienced any issues with the nuncuck library on a mega?

The Nunchuck is an i2c device. On the older/smaller boards, this is analog 4&5, on the mega they use 20&21

Joachim

That fixed it, Thank you!