Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Photon IR Transmitter

Simple IR Transmitter library for the Particle Photon. Full credit goes to AnalysIR.

Example usage

#include <IRTransmitter/IRTransmitter.h>

#define IR_PIN D6
#define LED_PIN D7

void setup() {
}

// Raw data can be sniffed using an IR-receiver and e.g. https://github.com/z3t0/Arduino-IRremote/blob/master/examples/IRrecvDumpV2/IRrecvDumpV2.ino
unsigned int data[67] = {9000, 4450, 550, 550, 600, 500, 600, 550, 550, 1650, 600, 550, 550, 550, 600, 500, 600, 550,
                            600, 1600, 600, 1650, 600, 1650, 600, 500, 600, 1650, 600, 1600, 600, 1650, 600, 1650, 600,
                            500, 600, 1650, 600, 1650, 550, 550, 600, 1650, 550, 550, 600, 500, 600, 550, 550, 1650,
                            600, 550, 550, 550, 600, 1650, 550, 550, 600, 1650, 550, 1650, 650, 1600,
                            600};  // NEC 10EF6897

IRTransmitter transmitter(IR_PIN, LED_PIN);
void loop() {
    transmitter.Transmit(data, sizeof(data) / sizeof(data[0]));
}

About

Simple IR Transmitter library for the Particle Photon

Resources

License

Releases

No releases published

Packages

No packages published

Languages