problem IRremote

bonjour a tout, j’ai une problem de compilation du programme irremote … lorsque je compile le programme s’affiche ça :

(((In file included from D:\Telechargement\arduino\libraries\Arduino-IRremote-master\IRremote.h:24:0,

from D:\Telechargement\arduino\libraries\Arduino-IRremote-master\IRremote.cpp:25:

D:\Telechargement\arduino\libraries\Arduino-IRremote-master\IRremote.cpp: In function ‘void TIMER2_COMPA_vect()’:

D:\Telechargement\arduino\libraries\Arduino-IRremote-master\IRremoteInt.h:92:26: error: ‘PORTB’ was not declared in this scope

#define BLINKLED_ON() (PORTB |= B00100000)


D:\Telechargement\arduino\libraries\Arduino-IRremote-master\IRremote.cpp:189:10: note: in expansion of macro ‘BLINKLED_ON’

else BLINKLED_ON() ; // if no user defined LED pin, turn default LED pin for the hardware on


D:\Telechargement\arduino\libraries\Arduino-IRremote-master\IRremoteInt.h:93:27: error: ‘PORTB’ was not declared in this scope

define BLINKLED_OFF() (PORTB &= B11011111)


D:\Telechargement\arduino\libraries\Arduino-IRremote-master\IRremote.cpp:191:10: note: in expansion of macro ‘BLINKLED_OFF’

else BLINKLED_OFF() ; // if no user defined LED pin, turn default LED pin for the hardware on


Utilisation de la bibliothèque Arduino-IRremote-master version 2.0.1 dans le dossier: D:\Telechargement\arduino\libraries\Arduino-IRremote-master
exit status 1
Error compiling for board Arduino Due (Programming Port).)))

le programme est juste:

((#include <IRremote.h>

int broche_reception = 11; // broche 11 utilisée
IRrecv reception_ir(broche_reception); // crée une instance
decode_results decode_ir; // stockage données reçues

void setup()
reception_ir.enableIRIn(); // démarre la réception

void loop()
if (reception_ir.decode(&decode_ir))
Serial.println(decode_ir.value, HEX);
reception_ir.resume(); // reçoit le prochain code
je souhaite de trouver la solution

Compiles fine for me on UNO, MEGA, and Leonardo. What Arduino are you using?