PaulS:
You seem to have missed the fact that warning != error.
Thanks for answering, so my problems are just warnings? Even if there just warnings I cant get it go work and dont get any readouts om the lcd display. Shouldnt a completly copied code just work?
I had excellent success with this code modified from another source to work with my wireless WiiChuck.
The code works with every wiichuck I tried.
The i2c buss requires pull up resisters if you weren’t aware.
Example Useage:
#include <NewWiiChk.h>
NewWiiChk WiiChk;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
WiiChk.get_data(); // Load the data from the WiiChuck
WiiChk.print_data();
int XV = WiiChk.joyx();
int YV = WiiChk.joyy();
int AX = WiiChk.accelx();
int AY = WiiChk.accely();
int AZ = WiiChk.accelz();
int ZV = WiiChk.zbutton();
int CV = WiiChk.zbutton();
}