hello friends:
tis is the code i hace capture con IR:
89857D7C
Unknown encoding: 89857D7C (32 bits)
Raw (16): -12100 50 -100 50 -50 100 -50 50 -50 50 -50 250 -100 6700 -50 50
D41
Decoded RC5: D41 (12 bits)
Raw (22): 23126 800 -850 800 -850 800 -850 1650 -1650 1650 -1650 1600 -900 800 -850 800 -850 800 -850 800 -1700 750
543
Decoded RC5: 543 (12 bits)
Raw (20): -11418 800 -850 1650 -1700 1600 -1700 1600 -1700 1600 -850 800 -850 800 -850 800 -1700 800 -850 800
D44
Decoded RC5: D44 (12 bits)
Raw (20): -19730 750 -900 800 -850 800 -850 1600 -1700 1600 -1700 1600 -850 800 -850 800 -1700 1600 -850 800
545
Decoded RC5: 545 (12 bits)
Raw (18): 15460 800 -850 1650 -1650 1650 -1650 1650 -1650 1650 -850 800 -850 800 -1650 1650 -1700 750
D46
Decoded RC5: D46 (12 bits)
Raw (20): 15720 800 -850 800 -850 800 -850 1650 -1650 1650 -1650 1650 -850 800 -850 800 -1700 800 -850 1600
547
Decoded RC5: 547 (12 bits)
Raw (20): -6548 800 -850 1650 -1650 1650 -1650 1650 -1650 1650 -850 800 -850 800 -1650 850 -850 800 -850 800
D48
Decoded RC5: D48 (12 bits)
Raw (20): 16652 800 -850 800 -850 800 -850 1650 -1650 1650 -1650 1650 -850 800 -1650 1600 -900 800 -850 800
549
Decoded RC5: 549 (12 bits)
Raw (18): 10452 800 -850 1600 -1700 1600 -1700 1650 -1650 1650 -850 800 -1650 1600 -900 800 -1650 800
D4A
Decoded RC5: D4A (12 bits)
Raw (18): -14484 800 -850 800 -850 800 -850 1650 -1650 1650 -1650 1650 -850 800 -1650 1650 -1650 1650
54B
Decoded RC5: 54B (12 bits)
Raw (18): 25838 800 -850 1650 -1650 1650 -1700 1600 -1700 1600 -850 850 -1650 1600 -1700 800 -850 800
D4C
Decoded RC5: D4C (12 bits)
Raw (20): -24998 800 -850 800 -850 800 -850 1650 -1650 1650 -1650 1650 -850 800 -1650 800 -850 1650 -850 800
55A
Decoded RC5: 55A (12 bits)
Raw (16): 6410 800 -850 1650 -1650 1650 -1650 1650 -1650 1650 -1650 800 -850 1600 -1700 1650
55A
Decoded RC5: 55A (12 bits)
Raw (16): -18664 800 -900 1600 -1700 1600 -1700 1600 -1700 1600 -1700 800 -850 1600 -1700 1600
D5A
Decoded RC5: D5A (12 bits)
Raw (18): 156 850 -800 850 -800 850 -800 1650 -1700 1600 -1700 1600 -1700 800 -850 1600 -1700 1600
D5A
Decoded RC5: D5A (12 bits)
Raw (18): -18714 800 -850 800 -850 800 -850 1650 -1650 1600 -1700 1650 -1650 800 -850 1650 -1650 1650
559
Decoded RC5: 559 (12 bits)
Raw (18): -24220 800 -900 1600 -1650 1650 -1650 1650 -1650 1650 -1650 800 -850 1650 -850 800 -1650 800
D41
Decoded RC5: D41 (12 bits)
Raw (22): -13218 800 -850 800 -850 800 -850 1600 -1700 1600 -1700 1650 -800 850 -800 850 -800 850 -850 750 -1700 800
but when i put in the code example like this:
#include <IRremote.h>
IRsend irsend;
unsigned int raw2[22] = {23126 800 -850 800 -850 800 -850 1650 -1650 1650 -1650 1600 -900 800 -850 800 -850 800 -850 800 -1700 750}
void setup()
{
Serial.begin(9600);
}
void loop() {
if (Serial.read()!= -1){
for (int i = 0; i < 1; i++) {
irsend.sendRaw(raw2,96,38);
delay(1000);
}
}
}
show this wrong in the arduino program:
exit status 1
expected '}' before numeric constant
someone know how can i make the right code?
thanks very much for help.