Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bengtmartensson/7eedcebd084fcee341a86e75fd54c75a to your computer and use it in GitHub Desktop.
Save bengtmartensson/7eedcebd084fcee341a86e75fd54c75a to your computer and use it in GitHub Desktop.
arduino_raw_2017-04-07_16-34-41.ino
// This Arduino sketch was automatically generated by IrScrutinizer.
// It supports:
//
// * IRremote https://github.com/z3t0/Arduino-IRremote
// http://z3t0.github.io/Arduino-IRremote/
// * IRLib https://github.com/cyborg5/IRLib
// * Infrared4Arduino https://github.com/bengtmartensson/Infrared4Arduino,
// http://www.harctoolbox.org/Infrared4Arduino.html (planned)
// For problems, bugs, and suggestions, please open an issue at
// https://github.com/bengtmartensson/harctoolboxbundle/issues
// This file contains C identifiers which have been translated from command names.
// Define exactly one of these
#define IRREMOTE
// #define IRLIB
// #define INFRARED4ARDUINO
/////////////////////////////////////////////////////
// Sanity check
#if defined(IRREMOTE) & ( defined(IRLIB) | defined(INFRARED4ARDUINO) )
#error Must define only one of IRREMOTE, IRLIB, or INFRARED4ARDUINO
#endif
#if defined(IRLIB) & ( defined(IRREMOTE) | defined(INFRARED4ARDUINO) )
#error Must define only one of IRREMOTE, IRLIB, or INFRARED4ARDUINO
#endif
#if defined(INFRARED4ARDUINO) & ( defined(IRLIB) | defined(IRREMOTE) )
#error Must define only one of IRREMOTE, IRLIB, or INFRARED4ARDUINO
#endif
#ifdef IRREMOTE
#include <IRremote.h>
#elif defined(IRLIB)
#include <IRLib.h>
#define sendRaw send
#elif defined(INFRARED4ARDUINO)
#include <IrSenderPwm.h>
#else
#error Must defined one of IRREMOTE, IRLIB, or INFRARED4ARDUINO
#endif
#if defined(IRREMOTE) | defined(IRLIB)
typedef uint16_t microseconds_t; // Change if desired
typedef uint16_t frequency_t; // Change if desired
static inline unsigned hz2khz(frequency_t f) { return f/1000U; }
#endif
// Constants
static const long BAUD = 115200UL; // Change if desired
// Global variables
#ifdef IRREMOTE
IRsend irsend;
#elif defined(IRLIB)
IRsendRaw irsend;
#else
IrSender *irsend = IrSenderPwm::getInstance(true);
#endif
// Command #1: rc6_D71F101T0
// Protocol: rc6, Parameters: T=0 D=71 F=101
const microseconds_t repeat_rc6_D71F101T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 888U, 65535U };
// Command #2: rc6_D71F101T1
// Protocol: rc6, Parameters: T=1 D=71 F=101
const microseconds_t repeat_rc6_D71F101T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 888U, 65535U };
// Command #3: rc6_D71F56T0
// Protocol: rc6, Parameters: T=0 D=71 F=56
const microseconds_t repeat_rc6_D71F56T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 65535U };
// Command #4: rc6_D71F56T1
// Protocol: rc6, Parameters: T=1 D=71 F=56
const microseconds_t repeat_rc6_D71F56T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 65535U };
// Command #5: rc6_D71F161T0
// Protocol: rc6, Parameters: T=0 D=71 F=161
const microseconds_t repeat_rc6_D71F161T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 65535U };
// Command #6: rc6_D71F161T1
// Protocol: rc6, Parameters: T=1 D=71 F=161
const microseconds_t repeat_rc6_D71F161T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 65535U };
// Command #7: rc6_D71F43T0
// Protocol: rc6, Parameters: T=0 D=71 F=43
const microseconds_t repeat_rc6_D71F43T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 444U, 444U, 65535U };
// Command #8: rc6_D71F43T1
// Protocol: rc6, Parameters: T=1 D=71 F=43
const microseconds_t repeat_rc6_D71F43T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 444U, 444U, 65535U };
// Command #9: rc6_D71F167T0
// Protocol: rc6, Parameters: T=0 D=71 F=167
const microseconds_t repeat_rc6_D71F167T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 65535U };
// Command #10: rc6_D71F167T1
// Protocol: rc6, Parameters: T=1 D=71 F=167
const microseconds_t repeat_rc6_D71F167T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 65535U };
// Command #11: rc6_D71F83T0
// Protocol: rc6, Parameters: T=0 D=71 F=83
const microseconds_t repeat_rc6_D71F83T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 65535U };
// Command #12: rc6_D71F83T1
// Protocol: rc6, Parameters: T=1 D=71 F=83
const microseconds_t repeat_rc6_D71F83T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 65535U };
// Command #13: rc6_D71F117T0
// Protocol: rc6, Parameters: T=0 D=71 F=117
const microseconds_t repeat_rc6_D71F117T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 65535U };
// Command #14: rc6_D71F117T1
// Protocol: rc6, Parameters: T=1 D=71 F=117
const microseconds_t repeat_rc6_D71F117T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 65535U };
// Command #15: rc6_D71F68T0
// Protocol: rc6, Parameters: T=0 D=71 F=68
const microseconds_t repeat_rc6_D71F68T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 444U, 65535U };
// Command #16: rc6_D71F68T1
// Protocol: rc6, Parameters: T=1 D=71 F=68
const microseconds_t repeat_rc6_D71F68T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 444U, 65535U };
// Command #17: rc6_D138F92T0
// Protocol: rc6, Parameters: T=0 D=138 F=92
const microseconds_t repeat_rc6_D138F92T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 65535U };
// Command #18: rc6_D138F92T1
// Protocol: rc6, Parameters: T=1 D=138 F=92
const microseconds_t repeat_rc6_D138F92T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 65535U };
// Command #19: rc6_D138F76T0
// Protocol: rc6, Parameters: T=0 D=138 F=76
const microseconds_t repeat_rc6_D138F76T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 65535U };
// Command #20: rc6_D138F76T1
// Protocol: rc6, Parameters: T=1 D=138 F=76
const microseconds_t repeat_rc6_D138F76T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 65535U };
// Command #21: rc6_D138F62T0
// Protocol: rc6, Parameters: T=0 D=138 F=62
const microseconds_t repeat_rc6_D138F62T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 65535U };
// Command #22: rc6_D138F62T1
// Protocol: rc6, Parameters: T=1 D=138 F=62
const microseconds_t repeat_rc6_D138F62T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 65535U };
// Command #23: rc6_D138F27T0
// Protocol: rc6, Parameters: T=0 D=138 F=27
const microseconds_t repeat_rc6_D138F27T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 444U, 444U, 65535U };
// Command #24: rc6_D138F27T1
// Protocol: rc6, Parameters: T=1 D=138 F=27
const microseconds_t repeat_rc6_D138F27T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 444U, 444U, 65535U };
// Command #25: rc6_D138F188T0
// Protocol: rc6, Parameters: T=0 D=138 F=188
const microseconds_t repeat_rc6_D138F188T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 65535U };
// Command #26: rc6_D138F188T1
// Protocol: rc6, Parameters: T=1 D=138 F=188
const microseconds_t repeat_rc6_D138F188T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 65535U };
// Command #27: rc6_D138F225T0
// Protocol: rc6, Parameters: T=0 D=138 F=225
const microseconds_t repeat_rc6_D138F225T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 65535U };
// Command #28: rc6_D138F225T1
// Protocol: rc6, Parameters: T=1 D=138 F=225
const microseconds_t repeat_rc6_D138F225T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 65535U };
// Command #29: rc6_D138F109T0
// Protocol: rc6, Parameters: T=0 D=138 F=109
const microseconds_t repeat_rc6_D138F109T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 888U, 65535U };
// Command #30: rc6_D138F109T1
// Protocol: rc6, Parameters: T=1 D=138 F=109
const microseconds_t repeat_rc6_D138F109T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 888U, 65535U };
// Command #31: rc6_D138F113T0
// Protocol: rc6, Parameters: T=0 D=138 F=113
const microseconds_t repeat_rc6_D138F113T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 65535U };
// Command #32: rc6_D138F113T1
// Protocol: rc6, Parameters: T=1 D=138 F=113
const microseconds_t repeat_rc6_D138F113T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 65535U };
// Command #33: rc6_D189F30T0
// Protocol: rc6, Parameters: T=0 D=189 F=30
const microseconds_t repeat_rc6_D189F30T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 65535U };
// Command #34: rc6_D189F30T1
// Protocol: rc6, Parameters: T=1 D=189 F=30
const microseconds_t repeat_rc6_D189F30T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 65535U };
// Command #35: rc6_D189F77T0
// Protocol: rc6, Parameters: T=0 D=189 F=77
const microseconds_t repeat_rc6_D189F77T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 65535U };
// Command #36: rc6_D189F77T1
// Protocol: rc6, Parameters: T=1 D=189 F=77
const microseconds_t repeat_rc6_D189F77T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 65535U };
// Command #37: rc6_D189F149T0
// Protocol: rc6, Parameters: T=0 D=189 F=149
const microseconds_t repeat_rc6_D189F149T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 65535U };
// Command #38: rc6_D189F149T1
// Protocol: rc6, Parameters: T=1 D=189 F=149
const microseconds_t repeat_rc6_D189F149T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 65535U };
// Command #39: rc6_D189F166T0
// Protocol: rc6, Parameters: T=0 D=189 F=166
const microseconds_t repeat_rc6_D189F166T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 65535U };
// Command #40: rc6_D189F166T1
// Protocol: rc6, Parameters: T=1 D=189 F=166
const microseconds_t repeat_rc6_D189F166T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 65535U };
// Command #41: rc6_D189F48T0
// Protocol: rc6, Parameters: T=0 D=189 F=48
const microseconds_t repeat_rc6_D189F48T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 65535U };
// Command #42: rc6_D189F48T1
// Protocol: rc6, Parameters: T=1 D=189 F=48
const microseconds_t repeat_rc6_D189F48T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 65535U };
// Command #43: rc6_D189F242T0
// Protocol: rc6, Parameters: T=0 D=189 F=242
const microseconds_t repeat_rc6_D189F242T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 444U, 65535U };
// Command #44: rc6_D189F242T1
// Protocol: rc6, Parameters: T=1 D=189 F=242
const microseconds_t repeat_rc6_D189F242T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 888U, 444U, 65535U };
// Command #45: rc6_D189F127T0
// Protocol: rc6, Parameters: T=0 D=189 F=127
const microseconds_t repeat_rc6_D189F127T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 65535U };
// Command #46: rc6_D189F127T1
// Protocol: rc6, Parameters: T=1 D=189 F=127
const microseconds_t repeat_rc6_D189F127T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 65535U };
// Command #47: rc6_D189F164T0
// Protocol: rc6, Parameters: T=0 D=189 F=164
const microseconds_t repeat_rc6_D189F164T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 888U, 444U, 444U, 444U, 65535U };
// Command #48: rc6_D189F164T1
// Protocol: rc6, Parameters: T=1 D=189 F=164
const microseconds_t repeat_rc6_D189F164T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 888U, 444U, 444U, 444U, 65535U };
// Command #49: rc6_D206F233T0
// Protocol: rc6, Parameters: T=0 D=206 F=233
const microseconds_t repeat_rc6_D206F233T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 65535U };
// Command #50: rc6_D206F233T1
// Protocol: rc6, Parameters: T=1 D=206 F=233
const microseconds_t repeat_rc6_D206F233T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 65535U };
// Command #51: rc6_D206F118T0
// Protocol: rc6, Parameters: T=0 D=206 F=118
const microseconds_t repeat_rc6_D206F118T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 65535U };
// Command #52: rc6_D206F118T1
// Protocol: rc6, Parameters: T=1 D=206 F=118
const microseconds_t repeat_rc6_D206F118T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 65535U };
// Command #53: rc6_D206F38T0
// Protocol: rc6, Parameters: T=0 D=206 F=38
const microseconds_t repeat_rc6_D206F38T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 65535U };
// Command #54: rc6_D206F38T1
// Protocol: rc6, Parameters: T=1 D=206 F=38
const microseconds_t repeat_rc6_D206F38T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 65535U };
// Command #55: rc6_D206F150T0
// Protocol: rc6, Parameters: T=0 D=206 F=150
const microseconds_t repeat_rc6_D206F150T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 65535U };
// Command #56: rc6_D206F150T1
// Protocol: rc6, Parameters: T=1 D=206 F=150
const microseconds_t repeat_rc6_D206F150T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 888U, 888U, 444U, 444U, 888U, 444U, 65535U };
// Command #57: rc6_D206F193T0
// Protocol: rc6, Parameters: T=0 D=206 F=193
const microseconds_t repeat_rc6_D206F193T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 65535U };
// Command #58: rc6_D206F193T1
// Protocol: rc6, Parameters: T=1 D=206 F=193
const microseconds_t repeat_rc6_D206F193T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 65535U };
// Command #59: rc6_D206F117T0
// Protocol: rc6, Parameters: T=0 D=206 F=117
const microseconds_t repeat_rc6_D206F117T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 65535U };
// Command #60: rc6_D206F117T1
// Protocol: rc6, Parameters: T=1 D=206 F=117
const microseconds_t repeat_rc6_D206F117T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 888U, 888U, 65535U };
// Command #61: rc6_D206F213T0
// Protocol: rc6, Parameters: T=0 D=206 F=213
const microseconds_t repeat_rc6_D206F213T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 888U, 65535U };
// Command #62: rc6_D206F213T1
// Protocol: rc6, Parameters: T=1 D=206 F=213
const microseconds_t repeat_rc6_D206F213T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 888U, 888U, 888U, 888U, 888U, 65535U };
// Command #63: rc6_D206F195T0
// Protocol: rc6, Parameters: T=0 D=206 F=195
const microseconds_t repeat_rc6_D206F195T0[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 888U, 1332U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 65535U };
// Command #64: rc6_D206F195T1
// Protocol: rc6, Parameters: T=1 D=206 F=195
const microseconds_t repeat_rc6_D206F195T1[] PROGMEM = { 2664U, 888U, 444U, 888U, 444U, 444U, 444U, 444U, 1332U, 888U, 444U, 444U, 444U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 888U, 888U, 444U, 444U, 888U, 444U, 444U, 444U, 444U, 444U, 444U, 888U, 444U, 444U, 65535U };
static void sendRaw(const microseconds_t intro_P[], size_t lengthIntro, const microseconds_t repeat_P[],
size_t lengthRepeat, frequency_t frequency, unsigned times) {
microseconds_t intro[lengthIntro];
microseconds_t repeat[lengthRepeat];
memcpy_PF(intro, (uint_farptr_t) intro_P, sizeof(microseconds_t) * lengthIntro);
memcpy_PF(repeat, (uint_farptr_t) repeat_P, sizeof(microseconds_t) * lengthRepeat);
#if defined(IRREMOTE) | defined(IRLIB)
if (lengthIntro > 0U)
irsend.sendRaw(intro, lengthIntro, hz2khz(frequency));
if (lengthRepeat > 0U)
for (unsigned i = 0U; i < times - (lengthIntro > 0U); i++)
irsend.sendRaw(repeat, lengthRepeat, hz2khz(frequency));
#else // INFRARED4ARDUINO
IrSignal irSignal(intro, lengthIntro, repeat, lengthRepeat, NULL, 0U, frequency);
irsend->sendIrSignal(irSignal, times);
#endif
}
void setup() {
Serial.begin(BAUD);
Serial.setTimeout(60000UL);
}
// A pretty silly main loop; just intended as an example.
void loop() {
Serial.println(F("Enter number of signal to send (1 .. 64)"));
long commandno = Serial.parseInt();
Serial.println(F("Enter number of times to send it"));
long times = Serial.parseInt();
switch (commandno) {
case 1U:
sendRaw(NULL, 0U, repeat_rc6_D71F101T0, 34U, 36000U, times);
break;
case 2U:
sendRaw(NULL, 0U, repeat_rc6_D71F101T1, 32U, 36000U, times);
break;
case 3U:
sendRaw(NULL, 0U, repeat_rc6_D71F56T0, 38U, 36000U, times);
break;
case 4U:
sendRaw(NULL, 0U, repeat_rc6_D71F56T1, 36U, 36000U, times);
break;
case 5U:
sendRaw(NULL, 0U, repeat_rc6_D71F161T0, 36U, 36000U, times);
break;
case 6U:
sendRaw(NULL, 0U, repeat_rc6_D71F161T1, 34U, 36000U, times);
break;
case 7U:
sendRaw(NULL, 0U, repeat_rc6_D71F43T0, 34U, 36000U, times);
break;
case 8U:
sendRaw(NULL, 0U, repeat_rc6_D71F43T1, 32U, 36000U, times);
break;
case 9U:
sendRaw(NULL, 0U, repeat_rc6_D71F167T0, 36U, 36000U, times);
break;
case 10U:
sendRaw(NULL, 0U, repeat_rc6_D71F167T1, 34U, 36000U, times);
break;
case 11U:
sendRaw(NULL, 0U, repeat_rc6_D71F83T0, 34U, 36000U, times);
break;
case 12U:
sendRaw(NULL, 0U, repeat_rc6_D71F83T1, 32U, 36000U, times);
break;
case 13U:
sendRaw(NULL, 0U, repeat_rc6_D71F117T0, 34U, 36000U, times);
break;
case 14U:
sendRaw(NULL, 0U, repeat_rc6_D71F117T1, 32U, 36000U, times);
break;
case 15U:
sendRaw(NULL, 0U, repeat_rc6_D71F68T0, 36U, 36000U, times);
break;
case 16U:
sendRaw(NULL, 0U, repeat_rc6_D71F68T1, 34U, 36000U, times);
break;
case 17U:
sendRaw(NULL, 0U, repeat_rc6_D138F92T0, 34U, 36000U, times);
break;
case 18U:
sendRaw(NULL, 0U, repeat_rc6_D138F92T1, 34U, 36000U, times);
break;
case 19U:
sendRaw(NULL, 0U, repeat_rc6_D138F76T0, 34U, 36000U, times);
break;
case 20U:
sendRaw(NULL, 0U, repeat_rc6_D138F76T1, 34U, 36000U, times);
break;
case 21U:
sendRaw(NULL, 0U, repeat_rc6_D138F62T0, 36U, 36000U, times);
break;
case 22U:
sendRaw(NULL, 0U, repeat_rc6_D138F62T1, 36U, 36000U, times);
break;
case 23U:
sendRaw(NULL, 0U, repeat_rc6_D138F27T0, 34U, 36000U, times);
break;
case 24U:
sendRaw(NULL, 0U, repeat_rc6_D138F27T1, 34U, 36000U, times);
break;
case 25U:
sendRaw(NULL, 0U, repeat_rc6_D138F188T0, 34U, 36000U, times);
break;
case 26U:
sendRaw(NULL, 0U, repeat_rc6_D138F188T1, 34U, 36000U, times);
break;
case 27U:
sendRaw(NULL, 0U, repeat_rc6_D138F225T0, 34U, 36000U, times);
break;
case 28U:
sendRaw(NULL, 0U, repeat_rc6_D138F225T1, 34U, 36000U, times);
break;
case 29U:
sendRaw(NULL, 0U, repeat_rc6_D138F109T0, 32U, 36000U, times);
break;
case 30U:
sendRaw(NULL, 0U, repeat_rc6_D138F109T1, 32U, 36000U, times);
break;
case 31U:
sendRaw(NULL, 0U, repeat_rc6_D138F113T0, 34U, 36000U, times);
break;
case 32U:
sendRaw(NULL, 0U, repeat_rc6_D138F113T1, 34U, 36000U, times);
break;
case 33U:
sendRaw(NULL, 0U, repeat_rc6_D189F30T0, 36U, 36000U, times);
break;
case 34U:
sendRaw(NULL, 0U, repeat_rc6_D189F30T1, 36U, 36000U, times);
break;
case 35U:
sendRaw(NULL, 0U, repeat_rc6_D189F77T0, 32U, 36000U, times);
break;
case 36U:
sendRaw(NULL, 0U, repeat_rc6_D189F77T1, 32U, 36000U, times);
break;
case 37U:
sendRaw(NULL, 0U, repeat_rc6_D189F149T0, 32U, 36000U, times);
break;
case 38U:
sendRaw(NULL, 0U, repeat_rc6_D189F149T1, 32U, 36000U, times);
break;
case 39U:
sendRaw(NULL, 0U, repeat_rc6_D189F166T0, 34U, 36000U, times);
break;
case 40U:
sendRaw(NULL, 0U, repeat_rc6_D189F166T1, 34U, 36000U, times);
break;
case 41U:
sendRaw(NULL, 0U, repeat_rc6_D189F48T0, 36U, 36000U, times);
break;
case 42U:
sendRaw(NULL, 0U, repeat_rc6_D189F48T1, 36U, 36000U, times);
break;
case 43U:
sendRaw(NULL, 0U, repeat_rc6_D189F242T0, 36U, 36000U, times);
break;
case 44U:
sendRaw(NULL, 0U, repeat_rc6_D189F242T1, 36U, 36000U, times);
break;
case 45U:
sendRaw(NULL, 0U, repeat_rc6_D189F127T0, 36U, 36000U, times);
break;
case 46U:
sendRaw(NULL, 0U, repeat_rc6_D189F127T1, 36U, 36000U, times);
break;
case 47U:
sendRaw(NULL, 0U, repeat_rc6_D189F164T0, 34U, 36000U, times);
break;
case 48U:
sendRaw(NULL, 0U, repeat_rc6_D189F164T1, 34U, 36000U, times);
break;
case 49U:
sendRaw(NULL, 0U, repeat_rc6_D206F233T0, 34U, 36000U, times);
break;
case 50U:
sendRaw(NULL, 0U, repeat_rc6_D206F233T1, 34U, 36000U, times);
break;
case 51U:
sendRaw(NULL, 0U, repeat_rc6_D206F118T0, 36U, 36000U, times);
break;
case 52U:
sendRaw(NULL, 0U, repeat_rc6_D206F118T1, 36U, 36000U, times);
break;
case 53U:
sendRaw(NULL, 0U, repeat_rc6_D206F38T0, 36U, 36000U, times);
break;
case 54U:
sendRaw(NULL, 0U, repeat_rc6_D206F38T1, 36U, 36000U, times);
break;
case 55U:
sendRaw(NULL, 0U, repeat_rc6_D206F150T0, 34U, 36000U, times);
break;
case 56U:
sendRaw(NULL, 0U, repeat_rc6_D206F150T1, 34U, 36000U, times);
break;
case 57U:
sendRaw(NULL, 0U, repeat_rc6_D206F193T0, 36U, 36000U, times);
break;
case 58U:
sendRaw(NULL, 0U, repeat_rc6_D206F193T1, 36U, 36000U, times);
break;
case 59U:
sendRaw(NULL, 0U, repeat_rc6_D206F117T0, 34U, 36000U, times);
break;
case 60U:
sendRaw(NULL, 0U, repeat_rc6_D206F117T1, 34U, 36000U, times);
break;
case 61U:
sendRaw(NULL, 0U, repeat_rc6_D206F213T0, 32U, 36000U, times);
break;
case 62U:
sendRaw(NULL, 0U, repeat_rc6_D206F213T1, 32U, 36000U, times);
break;
case 63U:
sendRaw(NULL, 0U, repeat_rc6_D206F195T0, 36U, 36000U, times);
break;
case 64U:
sendRaw(NULL, 0U, repeat_rc6_D206F195T1, 36U, 36000U, times);
break;
default:
Serial.println(F("Invalid number entered, try again"));
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment