Mneventh
Member
Hello!
I want to use the IRremote library to control a TV using my teensy with an infrared LED. I have set up teensyduino and loaded the blink test successfully.
I got an error when trying to use IRremote:
But class IRsend is defined in IRremote.h. Do you have any suggestions what I might try to get this working please? Thanks a lot.
This is the code I was trying to use (which is taken from the page here: http://www.pjrc.com/teensy/td_libs_IRremote.html)
I want to use the IRremote library to control a TV using my teensy with an infrared LED. I have set up teensyduino and loaded the blink test successfully.
I got an error when trying to use IRremote:
Code:
sketch_oct12a:4: error: 'IRsend' does not name a type
sketch_oct12a.ino: In function 'void loop()':
sketch_oct12a:10: error: 'irsend' was not declared in this scope
But class IRsend is defined in IRremote.h. Do you have any suggestions what I might try to get this working please? Thanks a lot.
This is the code I was trying to use (which is taken from the page here: http://www.pjrc.com/teensy/td_libs_IRremote.html)
Code:
#include <IRremote.h>
IRsend irsend;
void setup() {
}
void loop() {
irsend.sendSony(0x68B92, 20);
delay(100);
irsend.sendSony(0x68B92, 20);
delay(100);
irsend.sendSony(0x68B92, 20);
delay(300000);
}