Hello,
My problem is, how the arduino sending only FFFFFFFF (0 bits) and Raw (66).
My array is 68 long and sending only 66?
I don't understand, help please.
My code:
#include <IRremote.h>
// IR led on D3 (not work any other pin)
int buttonPin = 12;
int buttonState = 0;
IRsend irsend;
//This raw received from tv remote: {-26992 8900 -4500 550 -550 550 -550 600 -550 550 -600 500 -600 500 -600 550 -550 550 -550 550 -1700 550 -1700 550 -1650 550 -1700 550 -1700 550 -1700 500 -550 600 -1650 550 -600 550 -550 550 -550 550 -550 600 -1650 550 -600 550 -550 550 -550 550 -1700 550 -1650 600 -1650 550 -1700 550 -550 550 -1700 550 -1650 600 -1650 550};
unsigned int powerOn[68] = {26992,8900,4500,550,550,550,550,600,550,550,600,500,600,500,600,550,550,550,550,550,1700,550,1700,550,1650,550,1700,550,1700,550,1700,500,550,600,1650,550,600,550,550,550,550,550,550,600,1650,550,600,550,550,550,550,550,1700,550,1650,600,1650,550,1700,550,550,550,1700,550,1650,600,1650,550};
void setup()
{
Serial.begin(9600);
pinMode(buttonPin, INPUT);
}
void loop() {
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH) {
irsend.sendRaw(powerOn,68,38);
delay(100);
}
}