IRTransmitter (community library)
Summary
Name | Value |
---|---|
Name | IRTransmitter |
Version | 0.1.0 |
Installs | |
Author | AnalysIR |
URL | https://github.com/danielsunnerberg/photon-ir-transmitter |
Repository | https://github.com/danielsunnerberg/photon-ir-transmitter.git |
Download | .tar.gz |
Simple IR Transmitter library for the Particle Photon. Full credit goes to: AnalysIR (http://www.analysir.com/blog/2015/06/10/simple-infrared-pwm-on-arduino-part-2-raw-ir-signals/)
Example Build Testing
Device OS Version:
This table is generated from an automated build. Success only indicates that the code compiled successfully.
Library Read Me
This content is provided by the library maintainer and has not been validated or approved.
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]));
}
Browse Library Files