Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IRremote
07-23-2017, 03:14 AM
Post: #1
IRremote
Hey.
At first my englisch isnt so good.

But i try to explain what i want to do.

I have got a NRG2 and i want to include the irremote library but it didnt work. Am i right, that this only works with the AVR version.

Thanks for your help.
Find all posts by this user
Quote this message in a reply
07-23-2017, 08:19 AM
Post: #2
RE: IRremote
Hi Bastian,

Can you please post the link to the irremote library that you are using? What errors are you encountering when trying to compile for the NRG board?

Daniel Berenguer
http://www.panstamp.com
Visit this user's website Find all posts by this user
Quote this message in a reply
07-23-2017, 04:43 PM (This post was last modified: 07-23-2017 05:08 PM by Bastian0302.)
Post: #3
RE: IRremote
Good Morning
my code and link https://github.com/energia/Energia/blob/...cvDemo.pde

Code:
#include "HardwareSerial.h"

#include <IRremote.h>
IRrecv irrecv(14); // Receive on pin 14
decode_results results;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Continue receiving
  }
}

Errors:
Code:
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:197:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp: In member function 'void IRrecv::enableIRIn()':
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:115:6: error: 'cli' was not declared in this scope
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:120:2: error: 'TCCR2A' was not declared in this scope
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:120:2: error: 'WGM21' was not declared in this scope
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:120:2: error: '_BV' was not declared in this scope
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:120:2: error: 'TCCR2B' was not declared in this scope
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:120:2: error: 'CS21' was not declared in this scope
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:120:2: error: 'OCR2A' was not declared in this scope
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:120:2: error: 'TCNT2' was not declared in this scope
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:123:2: error: 'TIMSK2' was not declared in this scope
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:123:2: error: 'OCIE2A' was not declared in this scope
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:123:2: error: '_BV' was not declared in this scope
D:\Eigene Dokumente\Arduino\libraries\IRremote\irRecv.cpp:127:6: error: 'sei' was not declared in this scope
Multiple libraries were found for "IRremote.h"
Used: D:\Eigene Dokumente\Arduino\libraries\IRremote
Not used: C:\Program Files (x86)\Arduino\libraries\RobotIRremote
Fehler beim Kompilieren.
Thanks Smile
Find all posts by this user
Quote this message in a reply
07-24-2017, 05:38 PM
Post: #4
RE: IRremote
Hi Bastian,

This is definitely a library for the Atmega only. I remember others having developed their own IR routines or relied on other libraries but I can not say for sure.

Daniel Berenguer
http://www.panstamp.com
Visit this user's website Find all posts by this user
Quote this message in a reply
07-24-2017, 06:03 PM
Post: #5
RE: IRremote
Yes. I thought that too.
I searcherd the ir library for Msp430 Mikrocontroller but i didnt found one that work..

Thanks.
Find all posts by this user
Quote this message in a reply
07-24-2017, 07:00 PM
Post: #6
RE: IRremote
Have you tried with this one? (from the Energia project):
https://github.com/energia/Energia/tree/...s/IRremote

Daniel Berenguer
http://www.panstamp.com
Visit this user's website Find all posts by this user
Quote this message in a reply
08-05-2017, 11:49 PM (This post was last modified: 08-05-2017 11:53 PM by Bastian0302.)
Post: #7
RE: IRremote
Soo i tried the energia 1.6.10 E18. I installed nrg 2 like this page show https://github.com/panStamp/panstamp/wik...or-Arduino

When i kompilate it with the standard boards msp-exp430... it works. But when i change it to the the nrg 2 Board. There is this error.



D:\Eigene Dokumente\Energia\ir-neu-nrg-energia\ir-neu-nrg-energia.ino:9:22: fatal error: IRremote.h: No such file or directory

compilation terminated.

exit status 1
Fehler beim Kompilieren für das Board panStamp NRG 2 w/ cc430f5137.

So it is not include the library now.

Is there an option i have to choose, that it will work with energia.??
Find all posts by this user
Quote this message in a reply
08-07-2017, 02:14 AM
Post: #8
RE: IRremote
Don'ttry to used panStamp from Energia. Instead, simply take the IR library from Energia and port it to Arduino. I also need to move this thread since it's not ESP8266 related.

Daniel Berenguer
http://www.panstamp.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)