Sha256: aa44b9733f57b7c36856ed5dceced8f2be7a251a1df0f3b61015a045c5ed2367
Contents?: true
Size: 704 Bytes
Versions: 7
Compression:
Stored size: 704 Bytes
Contents
// // Denko IR output for the ESP8266 and ESP32. // Depends on: https://github.com/crankyoldgit/IRremoteESP8266 // DENKO_IR_OUT must be defeind in DenkoDefines.h // #include "Denko.h" #if defined(DENKO_IR_OUT) && (defined(ESP8266) || defined(ESP32)) #include <IRremoteESP8266.h> #include <IRsend.h> // CMD = 16 // Send an infrared signal. void Denko::irSend(){ // Byte 1+ of auxMsg is already little-endian uint16 pulses. uint16_t *pulseArray = reinterpret_cast<uint16_t *>(auxMsg + 1); // Can work on any pin. IRsend infraredOut(pin); infraredOut.begin(); // auxMsg[0] is how many pulses were packed. // val is frequency infraredOut.sendRaw(pulseArray, auxMsg[0], val); } #endif
Version data entries
7 entries across 7 versions & 1 rubygems