M4_Eyes/user_wiichuck.cpp
void user_setup(void) {
  // follow the WiiAccessory.ino example:
  nunchuck1.begin();
  if(nunchuck1.type == Unknown) {
    /** If the device isn't auto-detected, set the type explicitly:
      NUNCHUCK,
      WIICLASSIC,
      GuitarHeroController,
      GuitarHeroWorldTourDrums,
      DrumController,
      DrawsomeTablet,
      Turntable
    */
    nunchuck1.type = NUNCHUCK;
  }
}
// Called once near the end of the setup() function. If your code requires
// a lot of time to initialize, make periodic calls to yield() to keep the
// USB mass storage filesystem alive.
Called once near the end of the setup() function. If your code requires
a lot of time to initialize, make periodic calls to yield() to keep the
USB mass storage filesystem alive.
Called once near the end of the setup () function . If your code requires a lot of time to initialize make periodic calls to yield () to keep the USB mass storage filesystem alive .
void user_setup(void) {
  nunchuck1.begin();
  if(nunchuck1.type == Unknown) {
    nunchuck1.type = NUNCHUCK;
  }
}
void user_setup ( void ) { nunchuck1 . begin ( ) ; if ( nunchuck1 . type == Unknown ) { nunchuck1 . type = NUNCHUCK ; } }
Called once near the end of the setup() function.
Called once near the end of the setup () function .
// follow the WiiAccessory.ino example: /** If the device isn't auto-detected, set the type explicitly:
      NUNCHUCK,
      WIICLASSIC,
      GuitarHeroController,
      GuitarHeroWorldTourDrums,
      DrumController,
      DrawsomeTablet,
      Turntable
    */