problema libreria irremote

salve sono due giorni che ho problemi con questa libreria... ho cercato problemi analoghi sul forum tipo dove hanno risolto aggiornando l'ide e la libreria ma dopo averlo fatto l'errore è cambiato... prima non trovava un file ora dice che le variabili non sono dichiarate; questo è l'errore:

Arduino:1.5.6-r2 (Windows 7), Scheda:"Arduino Due (Programming Port)"

C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::mark(int)':
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:227: error: 'TCCR2A' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:227: error: 'COM2B1' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:227: error: '_BV' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::space(int)':
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:235: error: 'TCCR2A' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:235: error: 'COM2B1' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:235: error: '_BV' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::enableIROut(int)':
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:253: error: 'TIMSK2' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:263: error: 'TCCR2A' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:263: error: 'WGM20' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:263: error: '_BV' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:263: error: 'TCCR2B' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:263: error: 'WGM22' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:263: error: 'CS20' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:263: error: 'OCR2A' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:263: error: 'OCR2B' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:274: error: 'cli' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:279: error: 'TCCR2A' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:279: error: 'WGM21' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:279: error: '_BV' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:279: error: 'TCCR2B' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:279: error: 'CS21' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:279: error: 'OCR2A' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:279: error: 'TCNT2' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:282: error: 'TIMSK2' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:282: error: 'OCIE2A' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:282: error: '_BV' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:286: error: 'sei' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp: In function 'void TIMER2_COMPA_vect()':
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:370: error: 'PORTB' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\IRremote\IRremote.cpp:373: error: 'PORTB' was not declared in this scope

qualcuno ha qualche suggerimento???

p.s. ho aggiornato l'ide all'ultima versione e uso arduino due... sono alle prime armi e sto cercando di scoprire un pò la libreria irremote

grazie

Non mi risulta che la IRremote sia compatibile con Arduino DUE ...
... credo ne esista un'altra, con nome simile, modificata per la DUE ... QUI qualche cosa ... :roll_eyes:

Guglielmo

Confermo che la IRRemote NON è compatibile con la Due.

allora ci stavo anche anni senza risolvere niente grazie mille :slight_smile: mi avete salvato XD

niente l'ho provata poco fa e niente neanche con la libreria per il due =(

Arduino:1.5.6-r2 (Windows 7), Scheda:"Arduino Due (Programming Port)"

WARNING: library Robot IR Remote claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [sam] architecture(s).



C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:82: error: 'cli' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:87: error: 'TCCR2A' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:87: error: 'WGM21' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:87: error: '_BV' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:87: error: 'TCCR2B' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:87: error: 'CS21' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:87: error: 'OCR2A' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:87: error: 'TCNT2' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:90: error: 'TIMSK2' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:90: error: 'OCIE2A' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:90: error: '_BV' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:94: error: 'sei' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp: In function 'void TIMER2_COMPA_vect()':
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:178: error: 'PORTB' was not declared in this scope
C:\Users\Pierfra\Desktop\arduino-1.5.6-r2\libraries\RobotIRremote\src\IRremote.cpp:181: error: 'PORTB' was not declared in this scope

l'ho riscaricata e ricaricata e ora va :confused: mah comunque grazie mille