hi,
apart from faulty i2c readings on ARM boards, another crucial issue to the nunchuk.h lib:
Nunchuk.h nunchuk_init_power() uses AVR ports which is invalid for ARM and ESP Boards
static void nunchuk_init_power() {
// Add power supply for port C2 (GND) and C3 (PWR)
PORTC &= ~_BV(PORTC2);
PORTC |= _BV(PORTC3);
DDRC |= _BV(PORTC2) | _BV(PORTC3);
delay(100);
}
#endif
why don't you use the standard Arduino port numbers A0...A4 instead?
(edit: for ESP then perhaps digital output pins)