Bonjours
J'ai un programme qui ne se compile pas et voici les erreurs que j'ai :
In file included from sketch_jan02b.ino:1:
C:\Users\Documents\Arduino\lib raries\applet/WiiMPlus.h:5:22: error: WProgram.h: No such file or directory
In file included from sketch_jan02b.ino:1:
C:\Users\Documents\Arduino\lib raries\applet/WiiMPlus.h:12: error: 'byte' does not name a type
C:\Users\Documents\Arduino\lib raries\applet/WiiMPlus.h:35: error: 'boolean' has not been declared
merci d'avance#include <WiiMPlus.h>
#include <Wire.h>
#include "WiiMPlus.h"
WiiMPlus wmp;
long temps = 0;
//byte DDRC, PORTC,PORTC;
//see http://wiibrew.org/wiki/Wiimote/Exte...ii_Motion_Plus
//for info on what each byte represents
void setup(){
// alimentation du nunchuck (pas n�cessaire de comprendre)
// DDRC |= _BV(PC3) | _BV(PC2); // pattes Analog 2 et 3 en sortie
// PORTC &=~ _BV(PC2); // patte Analog 2 � 0v
// PORTC |= _BV(PC3); // patte Analog 3 � 5v
delay(100); // une petite attente
Serial.begin(115200);
//Serial.println("WM+ tester");
Wire.begin();
wmp.wmpOn(); //turn WM+ on
wmp.calibrateZeroes(false); //calibrate zeroes
delay(1000);
}
void loop(){
wmp.receiveData(); //receive data and calculate yaw pitch and roll
Serial.print(millis()-temps);
Serial.print(" ");
temps = millis();
Serial.print(wmp.getYaw()); //for info on which axis is which
Serial.print(" ");
Serial.print(wmp.getPitch());
Serial.print(" ");
Serial.println(wmp.getRoll());
delay(10);
}
-----