Ola,

estou tentando configurar um receptor IR infravermelho que comprei na robocore,

porem quando coloco a biblioteca IRremote na IDE e mando compilar da erro, o

erro da até quando não coloco código nenhum e sim só a biblioteca IRremote.

Segue abaixo o erro que aparece na IDE:


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

Exibições: 665

Responder esta

Respostas a este tópico

usar a biblioteca do UNO no DUE não funciona né

aqui tem a correta para o DUE

Ola,

obrigado pela resposta, porém mesmo com sua biblioteca está dando o erro abaixo. Seŕa que existe alguma solução?

Arduino: 1.5.6-r2 (Linux), Placa:"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).

/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:82: error: 'cli' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'TCCR2A' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'WGM21' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: '_BV' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'TCCR2B' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'CS21' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'OCR2A' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'TCNT2' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:90: error: 'TIMSK2' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:90: error: 'OCIE2A' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:90: error: '_BV' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp: In function 'void TIMER2_COMPA_vect()':
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:178: error: 'PORTB' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:181: error: 'PORTB' was not declared in this scope

  Este relatório deveria ter mais informações
  "Mostrar saída verbosa durante a compilação"
  habilitado em Arquivo > Preferências.

Ola,

obrigado pela resposta, porém mesmo com sua biblioteca está dando o erro abaixo. Seŕa que existe alguma solução?

Arduino: 1.5.6-r2 (Linux), Placa:"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).

/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:82: error: 'cli' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'TCCR2A' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'WGM21' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: '_BV' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'TCCR2B' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'CS21' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'OCR2A' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:87: error: 'TCNT2' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:90: error: 'TIMSK2' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:90: error: 'OCIE2A' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:90: error: '_BV' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp: In function 'void TIMER2_COMPA_vect()':
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:178: error: 'PORTB' was not declared in this scope
/home/luiz/arduino-1.5.6-r2/hardware/arduino/sam/libraries/RobotIRremote/src/IRremote.cpp:181: error: 'PORTB' was not declared in this scope

  Este relatório deveria ter mais informações
  "Mostrar saída verbosa durante a compilação"
  habilitado em Arquivo > Preferências.

RSS

© 2024   Criado por Marcelo Rodrigues.   Ativado por

Badges  |  Relatar um incidente  |  Termos de serviço