Wiichuck.h and utility/twi.h-error

Hi!
I’m making a wireless wii nunchuck controlled robot. When I’m compiling my code I get two errors.
One from the Wiichuck library and one from utility/twi library. I’m using the Wiichuck library to make my arduino uno communicate with a wii nunchuck. I’m using the utility/twi library to make some of the pins deliver power so that my wireless nunchuck adapter will work.
Here is the code:

#include <utility/twi.h>
#include <AFMotor.h>
#include <Wiichuck.h> 
#include <Wire.h>
#include <Servo.h> 

#define POWER_VIA_PORT_C2_C3 1 // can use port pins port C2 and C3 as power supply of the Nunchuck
Wiichuck wii;

AF_DCMotor motor1(1, MOTOR12_64KHZ); //motor1 is connected to M1 port
AF_DCMotor motor2(2, MOTOR12_64KHZ); //motor2 is connected to M2 port
AF_DCMotor motor3(3, MOTOR34_64KHZ); //motor3 is connected to M3 port

Servo myservo;  
const int myservoPin = 1;

void setup() {
  Wire.begin()
  myservo.attach(myservoPin); 
  wii.init();  
  wii.calibrate();  // calibration

   // use 400 kHz for the nunchuck, because it doesn't work reliable with 100 kHz
  TWBR = ((CPU_FREQ / 400000L) - 16) / 2;

// power supply of the Nunchuck via port C2 and C3
#ifdef POWER_VIA_PORT_C2_C3
  PORTC &=~ _BV(PORTC2);
  PORTC |=  _BV(PORTC3);
  DDRC |= _BV(PORTC2) | _BV(PORTC3);  // make outputs
  delay(100);  // wait for things to stabilize
#endif

  delay(100);
}

void loop() {

  if (wii.poll()) {
    int joyX = wii.joyX();
    int joyY = wii.joyY();
  }

    if (wii.buttonC) {
       myservo.write (60);
       delay(1000);
       myservo.write(0);
    }
    
    if (joyX = 127,5 && joyY = 127,5) {
        motor1.run(RELEASE);
        motor2.run(RELEASE);
        motor3.run(RELEASE);   
    } 
    if (joyX > 127,5 && joyX < 191,5) {
        motor1.setSpeed(192);
        motor2.setSpeed(192);
        motor1.run(FORWARD);
        motor2.run(FORWARD);
        motor3.run(RELEASE);
    }  
    if (joyX >= 191,5 && joyX <= 255) {
        motor1.setSpeed(255);
        motor2.setSpeed(255);
        motor1.run(FORWARD);
        motor2.run(FORWARD);
        motor3.run(RELEASE);
    }
    if (joyX < 127,5 && joyX > 64) {
        motor1.setSpeed(255);
        motor3.setSpeed(255);
        motor1.run(FORWARD);
        motor2.run(RELEASE);
        motor3.run(FORWARD);
    }
    if (joyX <=0 && joyX <=64) {
      if (joyX > 191,5 && joyX <= 255)
        motor1.setSpeed(255);
        motor3.setSpeed(255);
        motor1.run(FORWARD);
        motor2.run(RELEASE);
        motor3.run(FORWARD);
    }
        
    if (joyY > 127,5 && joyY < 191,5) {
        motor1.setSpeed(192);
        motor2.setSpeed(192);
        motor3.setSpeed(192);
        motor1.run(FORWARD);
        motor2.run(FORWARD);
        motor3.run(FORWARD);
    }
     if (joyY > 191,5 && joyY <= 255){
        motor1.setSpeed(255);
        motor2.setSpeed(255);
        motor3.setSpeed(255);
        motor1.run(FORWARD);
        motor2.run(FORWARD);
        motor3.run(FORWARD);
        //add backwards
      
    } 

  }

When I’m compiling my code this comes up:

Arduino:1.6.9 (Windows 7), Board:"Arduino/Genuino Uno"

WARNING: Spurious .github folder in 'Adafruit Motor Shield library' library
C:\Users\Isac\Desktop\programmering\arduino\sketcher text\WRARS\WRARS.ino: In function 'void loop()':

WRARS:30: error: cannot convert 'Wiichuck::buttonC' from type 'uint8_t (Wiichuck::)() {aka unsigned char (Wiichuck::)()}' to type 'bool'

    if (wii.buttonC) {

                   ^

WRARS:36: error: 'joyX' was not declared in this scope

    if (joyX = 127,5 && joyY = 127,5) {

        ^

WRARS:36: error: 'joyY' was not declared in this scope

    if (joyX = 127,5 && joyY = 127,5) {

                        ^

WRARS:41: error: 'joyX' was not declared in this scope

    if (joyX > 127,5 && joyX < 191,5) {

        ^

WRARS:48: error: 'joyX' was not declared in this scope

    if (joyX >= 191,5 && joyX <= 255) {

        ^

WRARS:55: error: 'joyX' was not declared in this scope

    if (joyX < 127,5 && joyX > 64) {

        ^

WRARS:62: error: 'joyX' was not declared in this scope

    if (joyX <=0 && joyX <=64) {

        ^

WRARS:71: error: 'joyY' was not declared in this scope

    if (joyY > 127,5 && joyY < 191,5) {

        ^

WRARS:79: error: 'joyY' was not declared in this scope

     if (joyY > 191,5 && joyY <= 255){

         ^

exit status 1
cannot convert 'Wiichuck::buttonC' from type 'uint8_t (Wiichuck::)() {aka unsigned char (Wiichuck::)()}' to type 'bool'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Arduino:1.6.9 (Windows 7), Kort:"Arduino/Genuino Uno"

And when I’m deleting that part and only have the utility/twi part this comes:

WARNING: Spurious .github folder in 'Adafruit Motor Shield library' library
C:\Users\Isac\Desktop\programmering\arduino\sketcher text\WRARS_wireless\WRARS_wireless.ino:1:25: fatal error: utility/twi.h: No such file or directory

#include <utility/twi.h>

                        ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Can someone link a website were you can download utility/twi.h library as a zip file.

WRARS:30: error: cannot convert 'Wiichuck::buttonC' from type 'uint8_t (Wiichuck::)() {aka unsigned char (Wiichuck::)()}' to type 'bool'

So, why are you trying to?

What are you expecting if (wii.buttonC) to do?

Can someone link a website were you can download utility/twi.h library as a zip file.

No. Some library that you are using should have contained a folder called utility, with a file called twi.h in it.

I want wii.buttonC to control a servo. (If I'm pressing the c button on nunchuck, will a servo move 60 degrees, then wait 1 sec and then move back to the original position.) Maybe I'll write like this:

if (wii.buttonC (1)) { myservo.write (60); delay(1000); myservo.write(0); }

(1 stands for magnetization on)

Maybe I can power the adapter from the 5V output on arduino and send data to some analog pins. (two pins goes to 5V and GND and the other two goes to analog pins like 1,2.) But I have no idea how to write that...

Can someone help me?