Skip to content

Instantly share code, notes, and snippets.

@vk2tds
vk2tds / SparkCore_IRsend.ino
Last active October 14, 2015 06:04
This is a snippet of code that allows IR to be sent using PWM on the Spark Core.
void setup() {
}
void loop(){
unsigned int ir[] = {8576,4224,640,1664,640,640,640,640,640,640,640,1664,640,640,640,640,640,640,640,640,640,640,
640,640,640,640,640,640,640,1664,640,640,640,640,640,1664,640,640,640,640,640,640,640,640,
640,640,640,640,640,640,640,1664,640,1664,640,640,640,640,640};
send (ir, 59, 36000);
}