Delete comment from: Ken Shirriff's blog
@Julez Stone
You don't need to edit the library at all.
You are almost there. This is how I would do it:
#include
IRsend irsend;
prog_uint16_t chUP[100] PROGMEM = {
4650,4450,550,450,600,400,600,400,600,450,550,1400,600,1400,600,450,550,450,600,400,600,1400,600,400,600,1400,600,1400,600,400,600,400,600,450,550,4450,600,400,600,450,550,450,600,400,600,400,600,1400,600,1400,600,400,600,450,550,450,600,1400,550,1450,550,1450,550,450,600,400,600,1400,600,1400,600,1400,550,450,600,400,600
};
unsigned int chupInt[100];
void setup() {
}
void loop() {
for (uint8_t i = 0; i < 100; i++)
chupInt[i] = pgm_read_word_near(&chUP[i]);
irsend.sendRaw(chupInt, 100, 38);
delay(2000);
irsend.sendRaw(chupInt, 100, 38);
delay(2000);
}
I also changed the modulation frequency to 38kHz, as I thought you must have made a typo.
Regards
Lauszus
Jun 22, 2012, 12:06:06 PM
Posted to A Multi-Protocol Infrared Remote Library for the Arduino

