I want to turn my xbox on/off with my arduino si i thought why not do it with ir? I have an old xbox 360 remote, not a controller, which has a on/off button on it. So, I used the ir library to dump the code and see what it was. It was a RC6 code, 800F7403, so i made a program to send this to the xbox. When i compiled the program i get this error "invalid suffix "F7403" on integer constant IR Library". What does it mean? i also tried dumping the raw values and sending them over, they did not gave any problems but the xbox just did not responded..
I would be thankful for some help.
/*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
IRsend irsend;
unsigned int powerOn[64] = {5220,2700,850,500,350,500,400,500,800,500,800,1400,800,500,400,500,350,500,400,500,350,500,400,500,350,500,400,500,350,500,400,500,350,950,400,500,350,500,400,500,800,950,350,500,400,500,800,950,800,500,400,500,350,500,400,950,800,950,800,500,350,500,400,500};
void setup()
{
Serial.begin(9600);
}
void loop() {
if (Serial.read() != -1) {
for (int i = 0; i < 2; i++) {
irsend.sendRC6(800F7403,3);
}
}
}