-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error emitting data to tv #8
Comments
You code here differs from the screenshot. please use ```cpp
code``` to create code boxes. In your code you missed the <> for So please post a better bug description. |
Ok, sorry, I was trying deleting this or adding that randomly, I copied a wrong code. The code I'm trying to run is #include <IRLremote.h>
const int BotM=9; //+ Volume
const int Botm=10; //- Volume
const int ledIR=3;
void setup() {
// put your setup code here, to run once:
pinMode(BotM,INPUT_PULLUP);
pinMode(Botm,INPUT_PULLUP);
pinMode(ledIR,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if (!digitalRead(BotM)) {
uint16_t address=0x20DF;
uint32_t command=0x40BF;
IRLwrite<IR_NEC>(ledIR, address, command); //ERROR
delay(300);
}
if (!digitalRead(Botm)) {
uint16_t address=0x20DF;
uint32_t command=0xC03F;
IRLwrite<IR_NEC>(ledIR, address, command); //ERROR
delay(300);
}
} The error is the same. My Arduino is an UNO, the software version is 1.6.5. The IRLRemote version is 1.7.4 (downloaded today). Emisor1.ino: In function 'void loop()': I hope here is all the info, I will be alert to give a fast answer to whatever you need :) |
I dont know the code compiles for me, but i am using a dev version I think (of my lib and arduino IDE as well). Writing wasnt finished anyways so that isnt a perfect solution anyways. The lib is more for receiving signals (right now). And you need to close the codebox properly. I cannot print how to, but I edited your post correctly now. |
Ok, if I can give you any other info just ask for it. |
You could try an older version (with older exmaples, different syntax!) or the new alpha. I dont have the time right now to fix this, sorry. |
No problem, I'll try another version. PS: In the alpha version I can verify the sketch with no problem, maybe it was just that version. |
Just to finish with this problem: Everything works properly in ARDUINO 1.6.0. The problem comes with 1.6.5. |
Code:
include <IRLremote.h>
const int BotM=9; //+ Volume
const int Botm=10; //- Volume
const int ledIR=3;
void setup() {
// put your setup code here, to run once:
pinMode(BotM,INPUT_PULLUP);
pinMode(Botm,INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
if (!digitalRead(BotM)) {
uint16_t address=0x20DF;
uint32_t command=0x40BF;
IRLwrite<IR_NEC>(ledIR, address, command); //LINE WITH ERROR
delay(300);
}
if (!digitalRead(Botm)) {
uint16_t address=0x20DF;
uint32_t command=0xC03F;
IRLwrite<IR_NEC>(ledIR, address, command); //LINE WITH ERROR
delay(300);
}
}
End Code*******************************/
Error: (Emisor1.ino is the sketch name)
Emisor1.ino: In function 'void loop()':
Emisor1:16: error: no match for 'operator<' (operand types are 'void(uint8_t, uint16_t, uint32_t) {aka void(unsigned char, unsigned int, long unsigned int)}' and 'IRType')
Emisor1:22: error: no match for 'operator<' (operand types are 'void(uint8_t, uint16_t, uint32_t) {aka void(unsigned char, unsigned int, long unsigned int)}' and 'IRType')
no match for 'operator<' (operand types are 'void(uint8_t, uint16_t, uint32_t) {aka void(unsigned char, unsigned int, long unsigned int)}' and 'IRType')
End Error********************/
It gives me the same error with the examples. Its something wrong with me or its the program?
Thank you.
The text was updated successfully, but these errors were encountered: