invalid suffix "F7403" on integer constant IR Library
i want turn xbox on/off arduino si thought why not ir? have old xbox 360 remote, not controller, has on/off button on it. so, used ir library dump code , see was. rc6 code, 800f7403, made program send xbox. when compiled program error "invalid suffix "f7403" on integer constant ir library". mean? tried dumping raw values , sending them over, did not gave problems xbox did not responded..
i thankful help.
i thankful help.
code: [select]
/*
* irremote: irsenddemo - demonstrates sending ir codes irsend
* ir led must connected 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) {
(int = 0; < 2; i++) {
irsend.sendrc6(800f7403,3);
}
}
}
it means you've got invalid suffix somewhere in code didn't post.
don't forget code tags
that one. needs 0x on front, , ul suffix wouldn't hurt
don't forget code tags
code: [select]
800f7403,3
that one. needs 0x on front, , ul suffix wouldn't hurt
Arduino Forum > Using Arduino > Programming Questions > invalid suffix "F7403" on integer constant IR Library
arduino
Comments
Post a Comment