IRremoteESP8266
IRsend.h
Go to the documentation of this file.
1 // Copyright 2009 Ken Shirriff
2 // Copyright 2015 Mark Szabo
3 // Copyright 2017 David Conran
4 #ifndef IRSEND_H_
5 #define IRSEND_H_
6 
7 #define __STDC_LIMIT_MACROS
8 #include <stdint.h>
9 #include "IRremoteESP8266.h"
10 
11 // Originally from https://github.com/shirriff/Arduino-IRremote/
12 // Updated by markszabo (https://github.com/crankyoldgit/IRremoteESP8266) for
13 // sending IR code on ESP8266
14 
15 #if TEST || UNIT_TEST
16 #define VIRTUAL virtual
17 #else
18 #define VIRTUAL
19 #endif
20 
21 // Constants
22 // Offset (in microseconds) to use in Period time calculations to account for
23 // code excution time in producing the software PWM signal.
24 #if defined(ESP32)
25 // Calculated on a generic ESP-WROOM-32 board with v3.2-18 SDK @ 240MHz
26 const int8_t kPeriodOffset = -2;
27 #elif (defined(ESP8266) && F_CPU == 160000000L) // NOLINT(whitespace/parens)
28 // Calculated on an ESP8266 NodeMCU v2 board using:
29 // v2.6.0 with v2.5.2 ESP core @ 160MHz
30 const int8_t kPeriodOffset = -2;
31 #else // (defined(ESP8266) && F_CPU == 160000000L)
32 // Calculated on ESP8266 Wemos D1 mini using v2.4.1 with v2.4.0 ESP core @ 40MHz
33 const int8_t kPeriodOffset = -5;
34 #endif // (defined(ESP8266) && F_CPU == 160000000L)
35 const uint8_t kDutyDefault = 50; // Percentage
36 const uint8_t kDutyMax = 100; // Percentage
37 // delayMicroseconds() is only accurate to 16383us.
38 // Ref: https://www.arduino.cc/en/Reference/delayMicroseconds
39 const uint16_t kMaxAccurateUsecDelay = 16383;
40 // Usecs to wait between messages we don't know the proper gap time.
41 const uint32_t kDefaultMessageGap = 100000;
42 
44 namespace stdAc {
46  enum class opmode_t {
47  kOff = -1,
48  kAuto = 0,
49  kCool = 1,
50  kHeat = 2,
51  kDry = 3,
52  kFan = 4,
53  // Add new entries before this one, and update it to point to the last entry
55  };
56 
58  enum class fanspeed_t {
59  kAuto = 0,
60  kMin = 1,
61  kLow = 2,
62  kMedium = 3,
63  kHigh = 4,
64  kMax = 5,
65  // Add new entries before this one, and update it to point to the last entry
67  };
68 
70  enum class swingv_t {
71  kOff = -1,
72  kAuto = 0,
73  kHighest = 1,
74  kHigh = 2,
75  kMiddle = 3,
76  kLow = 4,
77  kLowest = 5,
78  // Add new entries before this one, and update it to point to the last entry
80  };
81 
83  enum class swingh_t {
84  kOff = -1,
85  kAuto = 0, // a.k.a. On.
86  kLeftMax = 1,
87  kLeft = 2,
88  kMiddle = 3,
89  kRight = 4,
90  kRightMax = 5,
91  kWide = 6, // a.k.a. left & right at the same time.
92  // Add new entries before this one, and update it to point to the last entry
94  };
95 
97  typedef struct {
99  int16_t model;
100  bool power;
102  float degrees;
103  bool celsius;
107  bool quiet;
108  bool turbo;
109  bool econo;
110  bool light;
111  bool filter;
112  bool clean;
113  bool beep;
114  int16_t sleep;
115  int16_t clock;
116  } state_t;
117 }; // namespace stdAc
118 
121  ARRAH2E = 1, // (1) AR-RAH2E, AR-RAC1E, AR-RAE1E (Default)
122  ARDB1, // (2) AR-DB1, AR-DL10 (AR-DL10 swing doesn't work)
123  ARREB1E, // (3) AR-REB1E
124  ARJW2, // (4) AR-JW2 (Same as ARDB1 but with horiz control)
125  ARRY4, // (5) AR-RY4 (Same as AR-RAH2E but with clean & filter)
126 };
127 
130  YAW1F = 1, // (1) Ultimate, EKOKAI, RusClimate (Default)
131  YBOFB, // (2) Green, YBOFB2, YAPOF3
132 };
133 
136  R_LT0541_HTA_A = 1, // (1) R-LT0541-HTA Remote in "A" setting. (Default)
137  R_LT0541_HTA_B, // (2) R-LT0541-HTA Remote in "B" setting.
138 };
139 
145  kPanasonicDke = 3, // PKR too.
149 };
150 
153  DG11J13A = 1, // DG11J1-04 too
155 };
156 
159  GE6711AR2853M = 1, // (1) LG 28-bit Protocol (default)
160  AKB75215403, // (2) LG2 28-bit Protocol
161 };
162 
163 
164 // Classes
165 
170 class IRsend {
171  public:
172  explicit IRsend(uint16_t IRsendPin, bool inverted = false,
173  bool use_modulation = true);
174  void begin();
175  void enableIROut(uint32_t freq, uint8_t duty = kDutyDefault);
176  VIRTUAL void _delayMicroseconds(uint32_t usec);
177  VIRTUAL uint16_t mark(uint16_t usec);
178  VIRTUAL void space(uint32_t usec);
179  int8_t calibrate(uint16_t hz = 38000U);
180  void sendRaw(const uint16_t buf[], const uint16_t len, const uint16_t hz);
181  void sendData(uint16_t onemark, uint32_t onespace, uint16_t zeromark,
182  uint32_t zerospace, uint64_t data, uint16_t nbits,
183  bool MSBfirst = true);
184  void sendManchesterData(const uint16_t half_period, const uint64_t data,
185  const uint16_t nbits, const bool MSBfirst = true,
186  const bool GEThomas = true);
187  void sendManchester(const uint16_t headermark, const uint32_t headerspace,
188  const uint16_t half_period, const uint16_t footermark,
189  const uint32_t gap, const uint64_t data,
190  const uint16_t nbits, const uint16_t frequency = 38,
191  const bool MSBfirst = true,
192  const uint16_t repeat = kNoRepeat,
193  const uint8_t dutycycle = kDutyDefault,
194  const bool GEThomas = true);
195  void sendGeneric(const uint16_t headermark, const uint32_t headerspace,
196  const uint16_t onemark, const uint32_t onespace,
197  const uint16_t zeromark, const uint32_t zerospace,
198  const uint16_t footermark, const uint32_t gap,
199  const uint64_t data, const uint16_t nbits,
200  const uint16_t frequency, const bool MSBfirst,
201  const uint16_t repeat, const uint8_t dutycycle);
202  void sendGeneric(const uint16_t headermark, const uint32_t headerspace,
203  const uint16_t onemark, const uint32_t onespace,
204  const uint16_t zeromark, const uint32_t zerospace,
205  const uint16_t footermark, const uint32_t gap,
206  const uint32_t mesgtime, const uint64_t data,
207  const uint16_t nbits, const uint16_t frequency,
208  const bool MSBfirst, const uint16_t repeat,
209  const uint8_t dutycycle);
210  void sendGeneric(const uint16_t headermark, const uint32_t headerspace,
211  const uint16_t onemark, const uint32_t onespace,
212  const uint16_t zeromark, const uint32_t zerospace,
213  const uint16_t footermark, const uint32_t gap,
214  const uint8_t *dataptr, const uint16_t nbytes,
215  const uint16_t frequency, const bool MSBfirst,
216  const uint16_t repeat, const uint8_t dutycycle);
217  static uint16_t minRepeats(const decode_type_t protocol);
218  static uint16_t defaultBits(const decode_type_t protocol);
219  bool send(const decode_type_t type, const uint64_t data,
220  const uint16_t nbits, const uint16_t repeat = kNoRepeat);
221  bool send(const decode_type_t type, const uint8_t *state,
222  const uint16_t nbytes);
223 #if (SEND_NEC || SEND_SHERWOOD || SEND_AIWA_RC_T501 || SEND_SANYO || \
224  SEND_MIDEA24)
225  void sendNEC(uint64_t data, uint16_t nbits = kNECBits,
226  uint16_t repeat = kNoRepeat);
227  uint32_t encodeNEC(uint16_t address, uint16_t command);
228 #endif
229 #if SEND_SONY
230  // sendSony() should typically be called with repeat=2 as Sony devices
231  // expect the code to be sent at least 3 times. (code + 2 repeats = 3 codes)
232  // Legacy use of this procedure was to only send a single code so call it with
233  // repeat=0 for backward compatibility. As of v2.0 it defaults to sending
234  // a Sony command that will be accepted be a device.
235  void sendSony(const uint64_t data, const uint16_t nbits = kSony20Bits,
236  const uint16_t repeat = kSonyMinRepeat);
237  void sendSony38(const uint64_t data, const uint16_t nbits = kSony20Bits,
238  const uint16_t repeat = kSonyMinRepeat + 1);
239  uint32_t encodeSony(const uint16_t nbits, const uint16_t command,
240  const uint16_t address, const uint16_t extended = 0);
241 #endif // SEND_SONY
242 #if SEND_SHERWOOD
243  void sendSherwood(uint64_t data, uint16_t nbits = kSherwoodBits,
244  uint16_t repeat = kSherwoodMinRepeat);
245 #endif
246 #if SEND_SAMSUNG
247  void sendSAMSUNG(const uint64_t data, const uint16_t nbits = kSamsungBits,
248  const uint16_t repeat = kNoRepeat);
249  uint32_t encodeSAMSUNG(const uint8_t customer, const uint8_t command);
250 #endif
251 #if SEND_SAMSUNG36
252  void sendSamsung36(const uint64_t data, const uint16_t nbits = kSamsung36Bits,
253  const uint16_t repeat = kNoRepeat);
254 #endif
255 #if SEND_SAMSUNG_AC
256  void sendSamsungAC(const unsigned char data[],
257  const uint16_t nbytes = kSamsungAcStateLength,
258  const uint16_t repeat = kSamsungAcDefaultRepeat);
259 #endif
260 #if SEND_LG
261  void sendLG(uint64_t data, uint16_t nbits = kLgBits,
262  uint16_t repeat = kNoRepeat);
263  void sendLG2(uint64_t data, uint16_t nbits = kLgBits,
264  uint16_t repeat = kNoRepeat);
265  uint32_t encodeLG(uint16_t address, uint16_t command);
266 #endif
267 #if (SEND_SHARP || SEND_DENON)
268  uint32_t encodeSharp(const uint16_t address, const uint16_t command,
269  const uint16_t expansion = 1, const uint16_t check = 0,
270  const bool MSBfirst = false);
271  void sendSharp(const uint16_t address, const uint16_t command,
272  const uint16_t nbits = kSharpBits,
273  const uint16_t repeat = kNoRepeat);
274  void sendSharpRaw(const uint64_t data, const uint16_t nbits = kSharpBits,
275  const uint16_t repeat = kNoRepeat);
276 #endif
277 #if SEND_SHARP_AC
278  void sendSharpAc(const unsigned char data[],
279  const uint16_t nbytes = kSharpAcStateLength,
280  const uint16_t repeat = kSharpAcDefaultRepeat);
281 #endif // SEND_SHARP_AC
282 #if SEND_JVC
283  void sendJVC(uint64_t data, uint16_t nbits = kJvcBits,
284  uint16_t repeat = kNoRepeat);
285  uint16_t encodeJVC(uint8_t address, uint8_t command);
286 #endif
287 #if SEND_DENON
288  void sendDenon(uint64_t data, uint16_t nbits = kDenonBits,
289  uint16_t repeat = kNoRepeat);
290 #endif
291 #if SEND_SANYO
292  uint64_t encodeSanyoLC7461(uint16_t address, uint8_t command);
293  void sendSanyoLC7461(const uint64_t data,
294  const uint16_t nbits = kSanyoLC7461Bits,
295  const uint16_t repeat = kNoRepeat);
296 #endif
297 #if SEND_DISH
298  // sendDISH() should typically be called with repeat=3 as DISH devices
299  // expect the code to be sent at least 4 times. (code + 3 repeats = 4 codes)
300  // Legacy use of this procedure was only to send a single code
301  // so use repeat=0 for backward compatibility.
302  void sendDISH(uint64_t data, uint16_t nbits = kDishBits,
303  uint16_t repeat = kDishMinRepeat);
304 #endif
305 #if (SEND_PANASONIC || SEND_DENON)
306  void sendPanasonic64(const uint64_t data,
307  const uint16_t nbits = kPanasonicBits,
308  const uint16_t repeat = kNoRepeat);
309  void sendPanasonic(const uint16_t address, const uint32_t data,
310  const uint16_t nbits = kPanasonicBits,
311  const uint16_t repeat = kNoRepeat);
312  uint64_t encodePanasonic(const uint16_t manufacturer, const uint8_t device,
313  const uint8_t subdevice, const uint8_t function);
314 #endif
315 #if SEND_RC5
316  void sendRC5(const uint64_t data, uint16_t nbits = kRC5XBits,
317  const uint16_t repeat = kNoRepeat);
318  uint16_t encodeRC5(const uint8_t address, const uint8_t command,
319  const bool key_released = false);
320  uint16_t encodeRC5X(const uint8_t address, const uint8_t command,
321  const bool key_released = false);
322  uint64_t toggleRC5(const uint64_t data);
323 #endif
324 #if SEND_RC6
325  void sendRC6(const uint64_t data, const uint16_t nbits = kRC6Mode0Bits,
326  const uint16_t repeat = kNoRepeat);
327  uint64_t encodeRC6(const uint32_t address, const uint8_t command,
328  const uint16_t mode = kRC6Mode0Bits);
329  uint64_t toggleRC6(const uint64_t data, const uint16_t nbits = kRC6Mode0Bits);
330 #endif
331 #if SEND_RCMM
332  void sendRCMM(uint64_t data, uint16_t nbits = kRCMMBits,
333  uint16_t repeat = kNoRepeat);
334 #endif
335 #if SEND_COOLIX
336  void sendCOOLIX(uint64_t data, uint16_t nbits = kCoolixBits,
337  uint16_t repeat = kCoolixDefaultRepeat);
338 #endif
339 #if SEND_WHYNTER
340  void sendWhynter(const uint64_t data, const uint16_t nbits = kWhynterBits,
341  const uint16_t repeat = kNoRepeat);
342 #endif
343 #if SEND_MITSUBISHI
344  void sendMitsubishi(uint64_t data, uint16_t nbits = kMitsubishiBits,
345  uint16_t repeat = kMitsubishiMinRepeat);
346 #endif
347 #if SEND_MITSUBISHI136
348  void sendMitsubishi136(const unsigned char data[],
349  const uint16_t nbytes = kMitsubishi136StateLength,
350  const uint16_t repeat = kMitsubishi136MinRepeat);
351 #endif
352 #if SEND_MITSUBISHI112
353  void sendMitsubishi112(const unsigned char data[],
354  const uint16_t nbytes = kMitsubishi112StateLength,
355  const uint16_t repeat = kMitsubishi112MinRepeat);
356 #endif
357 #if SEND_MITSUBISHI2
358  void sendMitsubishi2(uint64_t data, uint16_t nbits = kMitsubishiBits,
359  uint16_t repeat = kMitsubishiMinRepeat);
360 #endif
361 #if SEND_MITSUBISHI_AC
362  void sendMitsubishiAC(const unsigned char data[],
363  const uint16_t nbytes = kMitsubishiACStateLength,
364  const uint16_t repeat = kMitsubishiACMinRepeat);
365 #endif
366 #if SEND_MITSUBISHIHEAVY
368  const unsigned char data[],
369  const uint16_t nbytes = kMitsubishiHeavy88StateLength,
370  const uint16_t repeat = kMitsubishiHeavy88MinRepeat);
372  const unsigned char data[],
373  const uint16_t nbytes = kMitsubishiHeavy152StateLength,
374  const uint16_t repeat = kMitsubishiHeavy152MinRepeat);
375 #endif
376 #if SEND_FUJITSU_AC
377  void sendFujitsuAC(const unsigned char data[], const uint16_t nbytes,
378  const uint16_t repeat = kFujitsuAcMinRepeat);
379 #endif
380 #if SEND_INAX
381  void sendInax(const uint64_t data, const uint16_t nbits = kInaxBits,
382  const uint16_t repeat = kInaxMinRepeat);
383 #endif // SEND_INAX
384 #if SEND_GLOBALCACHE
385  void sendGC(uint16_t buf[], uint16_t len);
386 #endif
387 #if SEND_KELVINATOR
388  void sendKelvinator(const unsigned char data[],
389  const uint16_t nbytes = kKelvinatorStateLength,
390  const uint16_t repeat = kKelvinatorDefaultRepeat);
391 #endif
392 #if SEND_DAIKIN
393  void sendDaikin(const unsigned char data[],
394  const uint16_t nbytes = kDaikinStateLength,
395  const uint16_t repeat = kDaikinDefaultRepeat);
396 #endif
397 #if SEND_DAIKIN64
398  void sendDaikin64(const uint64_t data, const uint16_t nbits = kDaikin64Bits,
399  const uint16_t repeat = kDaikin64DefaultRepeat);
400 #endif // SEND_DAIKIN64
401 #if SEND_DAIKIN128
402  void sendDaikin128(const unsigned char data[],
403  const uint16_t nbytes = kDaikin128StateLength,
404  const uint16_t repeat = kDaikin128DefaultRepeat);
405 #endif // SEND_DAIKIN128
406 #if SEND_DAIKIN152
407  void sendDaikin152(const unsigned char data[],
408  const uint16_t nbytes = kDaikin152StateLength,
409  const uint16_t repeat = kDaikin152DefaultRepeat);
410 #endif // SEND_DAIKIN152
411 #if SEND_DAIKIN160
412  void sendDaikin160(const unsigned char data[],
413  const uint16_t nbytes = kDaikin160StateLength,
414  const uint16_t repeat = kDaikin160DefaultRepeat);
415 #endif // SEND_DAIKIN160
416 #if SEND_DAIKIN176
417  void sendDaikin176(const unsigned char data[],
418  const uint16_t nbytes = kDaikin176StateLength,
419  const uint16_t repeat = kDaikin176DefaultRepeat);
420 #endif // SEND_DAIKIN176
421 #if SEND_DAIKIN2
422  void sendDaikin2(const unsigned char data[],
423  const uint16_t nbytes = kDaikin2StateLength,
424  const uint16_t repeat = kDaikin2DefaultRepeat);
425 #endif
426 #if SEND_DAIKIN216
427  void sendDaikin216(const unsigned char data[],
428  const uint16_t nbytes = kDaikin216StateLength,
429  const uint16_t repeat = kDaikin216DefaultRepeat);
430 #endif
431 #if SEND_AIWA_RC_T501
432  void sendAiwaRCT501(uint64_t data, uint16_t nbits = kAiwaRcT501Bits,
433  uint16_t repeat = kAiwaRcT501MinRepeats);
434 #endif
435 #if SEND_GREE
436  void sendGree(const uint64_t data, const uint16_t nbits = kGreeBits,
437  const uint16_t repeat = kGreeDefaultRepeat);
438  void sendGree(const uint8_t data[], const uint16_t nbytes = kGreeStateLength,
439  const uint16_t repeat = kGreeDefaultRepeat);
440 #endif
441 #if SEND_GOODWEATHER
442  void sendGoodweather(const uint64_t data,
443  const uint16_t nbits = kGoodweatherBits,
444  const uint16_t repeat = kGoodweatherMinRepeat);
445 #endif // SEND_GOODWEATHER
446 #if SEND_PRONTO
447  void sendPronto(uint16_t data[], uint16_t len, uint16_t repeat = kNoRepeat);
448 #endif
449 #if SEND_ARGO
450  void sendArgo(const unsigned char data[],
451  const uint16_t nbytes = kArgoStateLength,
452  const uint16_t repeat = kArgoDefaultRepeat);
453 #endif
454 #if SEND_TROTEC
455  void sendTrotec(const unsigned char data[],
456  const uint16_t nbytes = kTrotecStateLength,
457  const uint16_t repeat = kTrotecDefaultRepeat);
458 #endif
459 #if SEND_NIKAI
460  void sendNikai(uint64_t data, uint16_t nbits = kNikaiBits,
461  uint16_t repeat = kNoRepeat);
462 #endif
463 #if SEND_TOSHIBA_AC
464  void sendToshibaAC(const unsigned char data[],
465  const uint16_t nbytes = kToshibaACStateLength,
466  const uint16_t repeat = kToshibaACMinRepeat);
467 #endif
468 #if SEND_MIDEA
469  void sendMidea(uint64_t data, uint16_t nbits = kMideaBits,
470  uint16_t repeat = kMideaMinRepeat);
471 #endif // SEND_MIDEA
472 #if SEND_MIDEA24
473  void sendMidea24(const uint64_t data, const uint16_t nbits = kMidea24Bits,
474  const uint16_t repeat = kMidea24MinRepeat);
475 #endif // SEND_MIDEA24
476 #if SEND_MAGIQUEST
477  void sendMagiQuest(const uint64_t data, const uint16_t nbits = kMagiquestBits,
478  const uint16_t repeat = kNoRepeat);
479  uint64_t encodeMagiQuest(const uint32_t wand_id, const uint16_t magnitude);
480 #endif
481 #if SEND_LASERTAG
482  void sendLasertag(uint64_t data, uint16_t nbits = kLasertagBits,
483  uint16_t repeat = kLasertagMinRepeat);
484 #endif
485 #if SEND_CARRIER_AC
486  void sendCarrierAC(uint64_t data, uint16_t nbits = kCarrierAcBits,
487  uint16_t repeat = kCarrierAcMinRepeat);
488 #endif
489 #if SEND_CARRIER_AC40
490  void sendCarrierAC40(uint64_t data, uint16_t nbits = kCarrierAc40Bits,
491  uint16_t repeat = kCarrierAc40MinRepeat);
492 #endif
493 #if SEND_CARRIER_AC64
494  void sendCarrierAC64(uint64_t data, uint16_t nbits = kCarrierAc64Bits,
495  uint16_t repeat = kCarrierAc64MinRepeat);
496 #endif
497 #if (SEND_HAIER_AC || SEND_HAIER_AC_YRW02)
498  void sendHaierAC(const unsigned char data[],
499  const uint16_t nbytes = kHaierACStateLength,
500  const uint16_t repeat = kHaierAcDefaultRepeat);
501 #endif
502 #if SEND_HAIER_AC_YRW02
503  void sendHaierACYRW02(const unsigned char data[],
504  const uint16_t nbytes = kHaierACYRW02StateLength,
505  const uint16_t repeat = kHaierAcYrw02DefaultRepeat);
506 #endif
507 #if SEND_HITACHI_AC
508  void sendHitachiAC(const unsigned char data[],
509  const uint16_t nbytes = kHitachiAcStateLength,
510  const uint16_t repeat = kHitachiAcDefaultRepeat);
511 #endif
512 #if SEND_HITACHI_AC1
513  void sendHitachiAC1(const unsigned char data[],
514  const uint16_t nbytes = kHitachiAc1StateLength,
515  const uint16_t repeat = kHitachiAcDefaultRepeat);
516 #endif
517 #if SEND_HITACHI_AC2
518  void sendHitachiAC2(const unsigned char data[],
519  const uint16_t nbytes = kHitachiAc2StateLength,
520  const uint16_t repeat = kHitachiAcDefaultRepeat);
521 #endif
522 #if SEND_HITACHI_AC3
523  void sendHitachiAc3(const unsigned char data[],
524  const uint16_t nbytes, // No default as there as so many
525  // different sizes
526  const uint16_t repeat = kHitachiAcDefaultRepeat);
527 #endif // SEND_HITACHI_AC3
528 #if SEND_HITACHI_AC344
529  void sendHitachiAc344(const unsigned char data[],
530  const uint16_t nbytes = kHitachiAc344StateLength,
531  const uint16_t repeat = kHitachiAcDefaultRepeat);
532 #endif // SEND_HITACHI_AC344
533 #if SEND_HITACHI_AC424
534  void sendHitachiAc424(const unsigned char data[],
535  const uint16_t nbytes = kHitachiAc424StateLength,
536  const uint16_t repeat = kHitachiAcDefaultRepeat);
537 #endif // SEND_HITACHI_AC424
538 #if SEND_GICABLE
539  void sendGICable(uint64_t data, uint16_t nbits = kGicableBits,
540  uint16_t repeat = kGicableMinRepeat);
541 #endif
542 #if SEND_WHIRLPOOL_AC
543  void sendWhirlpoolAC(const unsigned char data[],
544  const uint16_t nbytes = kWhirlpoolAcStateLength,
545  const uint16_t repeat = kWhirlpoolAcDefaultRepeat);
546 #endif
547 #if SEND_LUTRON
548  void sendLutron(uint64_t data, uint16_t nbits = kLutronBits,
549  uint16_t repeat = kNoRepeat);
550 #endif
551 #if SEND_ELECTRA_AC
552  void sendElectraAC(const unsigned char data[],
553  const uint16_t nbytes = kElectraAcStateLength,
554  const uint16_t repeat = kNoRepeat);
555 #endif
556 #if SEND_PANASONIC_AC
557  void sendPanasonicAC(const unsigned char data[],
558  const uint16_t nbytes = kPanasonicAcStateLength,
559  const uint16_t repeat = kPanasonicAcDefaultRepeat);
560 #endif
561 #if SEND_PIONEER
562  void sendPioneer(const uint64_t data, const uint16_t nbits = kPioneerBits,
563  const uint16_t repeat = kNoRepeat);
564  uint64_t encodePioneer(uint16_t address, uint16_t command);
565 #endif
566 #if SEND_MWM
567  void sendMWM(const unsigned char data[], const uint16_t nbytes,
568  const uint16_t repeat = kNoRepeat);
569 #endif
570 #if SEND_VESTEL_AC
571  void sendVestelAc(const uint64_t data, const uint16_t nbits = kVestelAcBits,
572  const uint16_t repeat = kNoRepeat);
573 #endif
574 #if SEND_TCL112AC
575  void sendTcl112Ac(const unsigned char data[],
576  const uint16_t nbytes = kTcl112AcStateLength,
577  const uint16_t repeat = kTcl112AcDefaultRepeat);
578 #endif
579 #if SEND_TECO
580  void sendTeco(const uint64_t data, const uint16_t nbits = kTecoBits,
581  const uint16_t repeat = kNoRepeat);
582 #endif
583 #if SEND_LEGOPF
584  void sendLegoPf(const uint64_t data, const uint16_t nbits = kLegoPfBits,
585  const uint16_t repeat = kLegoPfMinRepeat);
586 #endif
587 #if SEND_NEOCLIMA
588  void sendNeoclima(const unsigned char data[],
589  const uint16_t nbytes = kNeoclimaStateLength,
590  const uint16_t repeat = kNeoclimaMinRepeat);
591 #endif // SEND_NEOCLIMA
592 #if SEND_AMCOR
593  void sendAmcor(const unsigned char data[],
594  const uint16_t nbytes = kAmcorStateLength,
595  const uint16_t repeat = kAmcorDefaultRepeat);
596 #endif // SEND_AMCOR
597 #if SEND_EPSON
598  void sendEpson(uint64_t data, uint16_t nbits = kEpsonBits,
599  uint16_t repeat = kEpsonMinRepeat);
600 #endif
601 #if SEND_SYMPHONY
602  void sendSymphony(uint64_t data, uint16_t nbits = kSymphonyBits,
603  uint16_t repeat = kSymphonyDefaultRepeat);
604 #endif
605 #if SEND_AIRWELL
606  void sendAirwell(uint64_t data, uint16_t nbits = kAirwellBits,
607  uint16_t repeat = kAirwellMinRepeats);
608 #endif
609 #if SEND_DELONGHI_AC
610  void sendDelonghiAc(uint64_t data, uint16_t nbits = kDelonghiAcBits,
611  uint16_t repeat = kDelonghiAcDefaultRepeat);
612 #endif
613 #if SEND_DOSHISHA
614  void sendDoshisha(const uint64_t data, uint16_t nbits = kDoshishaBits,
615  const uint16_t repeat = kNoRepeat);
616  uint64_t encodeDoshisha(const uint8_t command, const uint8_t channel = 0);
617 #endif // SEND_DOSHISHA
618 #if SEND_MULTIBRACKETS
619  void sendMultibrackets(const uint64_t data,
620  const uint16_t nbits = kMultibracketsBits,
621  const uint16_t repeat = kMultibracketsDefaultRepeat);
622 #endif
623 #if SEND_CORONA_AC
624  void sendCoronaAc(const uint8_t data[],
625  const uint16_t nbytes = kCoronaAcStateLength,
626  const uint16_t repeat = kNoRepeat);
627 #endif // SEND_CORONA_AC
628 #if SEND_ZEPEAL
629  void sendZepeal(const uint64_t data,
630  const uint16_t nbits = kZepealBits,
631  const uint16_t repeat = kZepealMinRepeat);
632 #endif
633 
634  protected:
635 #ifdef UNIT_TEST
636 #ifndef HIGH
637 #define HIGH 0x1
638 #endif
639 #ifndef LOW
640 #define LOW 0x0
641 #endif
642 #endif // UNIT_TEST
643  uint8_t outputOn;
644  uint8_t outputOff;
645  VIRTUAL void ledOff();
646  VIRTUAL void ledOn();
647 #ifndef UNIT_TEST
648 
649  private:
650 #else
651  uint32_t _freq_unittest;
652 #endif // UNIT_TEST
653  uint16_t onTimePeriod;
654  uint16_t offTimePeriod;
655  uint16_t IRpin;
656  int8_t periodOffset;
657  uint8_t _dutycycle;
659  uint32_t calcUSecPeriod(uint32_t hz, bool use_offset = true);
660 #if SEND_SONY
661  void _sendSony(const uint64_t data, const uint16_t nbits,
662  const uint16_t repeat, const uint16_t freq);
663 #endif // SEND_SONY
664 };
665 
666 #endif // IRSEND_H_
IRsend::calcUSecPeriod
uint32_t calcUSecPeriod(uint32_t hz, bool use_offset=true)
Calculate the period for a given frequency.
Definition: IRsend.cpp:71
kDaikin152DefaultRepeat
const uint16_t kDaikin152DefaultRepeat
Definition: IRremoteESP8266.h:854
IRsend::sendZepeal
void sendZepeal(const uint64_t data, const uint16_t nbits=kZepealBits, const uint16_t repeat=kZepealMinRepeat)
Send a Zepeal formatted message. Status: STABLE / Works on real device.
Definition: ir_Zepeal.cpp:47
kDelonghiAcBits
const uint16_t kDelonghiAcBits
Definition: IRremoteESP8266.h:861
IRsend::sendHaierACYRW02
void sendHaierACYRW02(const unsigned char data[], const uint16_t nbytes=kHaierACYRW02StateLength, const uint16_t repeat=kHaierAcYrw02DefaultRepeat)
Send a Haier YR-W02 remote A/C formatted message. Status: Alpha / Untested on a real device.
Definition: ir_Haier.cpp:68
kHaierAcYrw02DefaultRepeat
const uint16_t kHaierAcYrw02DefaultRepeat
Definition: IRremoteESP8266.h:891
IRsend::sendPronto
void sendPronto(uint16_t data[], uint16_t len, uint16_t repeat=kNoRepeat)
Send a Pronto Code formatted message. Status: STABLE / Known working.
Definition: ir_Pronto.cpp:56
IRsend::outputOff
uint8_t outputOff
Definition: IRsend.h:644
IRsend::periodOffset
int8_t periodOffset
Definition: IRsend.h:656
kMitsubishiACStateLength
const uint16_t kMitsubishiACStateLength
Definition: IRremoteESP8266.h:930
kMitsubishiHeavy152StateLength
const uint16_t kMitsubishiHeavy152StateLength
Definition: IRremoteESP8266.h:942
kAirwellMinRepeats
const uint16_t kAirwellMinRepeats
Definition: IRremoteESP8266.h:814
kMideaMinRepeat
const uint16_t kMideaMinRepeat
Definition: IRremoteESP8266.h:923
stdAc::state_t::clock
int16_t clock
Definition: IRsend.h:115
kGicableBits
const uint16_t kGicableBits
Definition: IRremoteESP8266.h:879
kGreeStateLength
const uint16_t kGreeStateLength
Definition: IRremoteESP8266.h:883
IRsend::encodeNEC
uint32_t encodeNEC(uint16_t address, uint16_t command)
Calculate the raw NEC data based on address and command. Status: STABLE / Expected to work.
Definition: ir_NEC.cpp:48
decode_type_t
decode_type_t
Enumerator for defining and numbering of supported IR protocol.
Definition: IRremoteESP8266.h:714
IRsend::encodeDoshisha
uint64_t encodeDoshisha(const uint8_t command, const uint8_t channel=0)
Encode Doshisha combining constant values with command and channel. Status: STABLE / Working.
Definition: ir_Doshisha.cpp:67
kCarrierAcBits
const uint16_t kCarrierAcBits
Definition: IRremoteESP8266.h:826
stdAc::swingv_t::kLow
@ kLow
IRsend::sendHitachiAc344
void sendHitachiAc344(const unsigned char data[], const uint16_t nbytes=kHitachiAc344StateLength, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi A/C 43-byte/344-bit message. (HITACHI_AC344) Basically the same as sendHitatchiAC() ex...
Definition: ir_Hitachi.cpp:121
kDaikin2DefaultRepeat
const uint16_t kDaikin2DefaultRepeat
Definition: IRremoteESP8266.h:843
kMultibracketsBits
const uint16_t kMultibracketsBits
Definition: IRremoteESP8266.h:945
kWhynterBits
const uint16_t kWhynterBits
Definition: IRremoteESP8266.h:1008
stdAc::opmode_t::kAuto
@ kAuto
kAirwellBits
const uint16_t kAirwellBits
Definition: IRremoteESP8266.h:813
kHaierAcDefaultRepeat
const uint16_t kHaierAcDefaultRepeat
Definition: IRremoteESP8266.h:888
IRsend::sendMidea
void sendMidea(uint64_t data, uint16_t nbits=kMideaBits, uint16_t repeat=kMideaMinRepeat)
Send a Midea message Status: Alpha / Needs testing against a real device.
Definition: ir_Midea.cpp:52
kTrotecDefaultRepeat
const uint16_t kTrotecDefaultRepeat
Definition: IRremoteESP8266.h:1004
kFujitsuAcMinRepeat
const uint16_t kFujitsuAcMinRepeat
Definition: IRremoteESP8266.h:874
IRsend::sendLG
void sendLG(uint64_t data, uint16_t nbits=kLgBits, uint16_t repeat=kNoRepeat)
Send an LG formatted message. (LG) Status: Beta / Should be working.
Definition: ir_LG.cpp:69
kPanasonicRkr
@ kPanasonicRkr
Definition: IRsend.h:148
kMitsubishi136MinRepeat
const uint16_t kMitsubishi136MinRepeat
Definition: IRremoteESP8266.h:935
stdAc::swingv_t
swingv_t
Common A/C settings for Vertical Swing.
Definition: IRsend.h:70
IRsend::_delayMicroseconds
VIRTUAL void _delayMicroseconds(uint32_t usec)
An ESP8266 RTOS watch-dog timer friendly version of delayMicroseconds().
Definition: IRsend.cpp:114
stdAc::state_t::clean
bool clean
Definition: IRsend.h:112
IRsend::sendLegoPf
void sendLegoPf(const uint64_t data, const uint16_t nbits=kLegoPfBits, const uint16_t repeat=kLegoPfMinRepeat)
Send a LEGO Power Functions message. Status: Beta / Should work.
Definition: ir_Lego.cpp:33
kArgoDefaultRepeat
const uint16_t kArgoDefaultRepeat
Definition: IRremoteESP8266.h:823
IRsend::outputOn
uint8_t outputOn
Definition: IRsend.h:643
kHaierACStateLength
const uint16_t kHaierACStateLength
Definition: IRremoteESP8266.h:886
kHitachiAcStateLength
const uint16_t kHitachiAcStateLength
Definition: IRremoteESP8266.h:892
stdAc::swingh_t::kLeft
@ kLeft
kDaikin176StateLength
const uint16_t kDaikin176StateLength
Definition: IRremoteESP8266.h:855
kRC5XBits
const uint16_t kRC5XBits
Definition: IRremoteESP8266.h:963
kEpsonMinRepeat
const uint16_t kEpsonMinRepeat
Definition: IRremoteESP8266.h:870
kAmcorStateLength
const uint16_t kAmcorStateLength
Definition: IRremoteESP8266.h:818
IRsend::send
bool send(const decode_type_t type, const uint64_t data, const uint16_t nbits, const uint16_t repeat=kNoRepeat)
Send a simple (up to 64 bits) IR message of a given type. An unknown/unsupported type will send nothi...
Definition: IRsend.cpp:749
stdAc::fanspeed_t
fanspeed_t
Common A/C settings for Fan Speeds.
Definition: IRsend.h:58
R_LT0541_HTA_B
@ R_LT0541_HTA_B
Definition: IRsend.h:137
IRsend::sendWhynter
void sendWhynter(const uint64_t data, const uint16_t nbits=kWhynterBits, const uint16_t repeat=kNoRepeat)
Send a Whynter message. Status: STABLE.
Definition: ir_Whynter.cpp:45
whirlpool_ac_remote_model_t
whirlpool_ac_remote_model_t
Whirlpool A/C model numbers.
Definition: IRsend.h:152
IRsend::sendMitsubishiAC
void sendMitsubishiAC(const unsigned char data[], const uint16_t nbytes=kMitsubishiACStateLength, const uint16_t repeat=kMitsubishiACMinRepeat)
Send a Mitsubishi 144-bit A/C formatted message. (MITSUBISHI_AC) Status: STABLE / Working.
Definition: ir_Mitsubishi.cpp:233
IRsend::sendNikai
void sendNikai(uint64_t data, uint16_t nbits=kNikaiBits, uint16_t repeat=kNoRepeat)
Send a Nikai formatted message. Status: STABLE / Working.
Definition: ir_Nikai.cpp:37
kDefaultMessageGap
const uint32_t kDefaultMessageGap
Definition: IRsend.h:41
kMaxAccurateUsecDelay
const uint16_t kMaxAccurateUsecDelay
Definition: IRsend.h:39
IRsend::encodeJVC
uint16_t encodeJVC(uint8_t address, uint8_t command)
Calculate the raw JVC data based on address and command. Status: STABLE / Works fine.
Definition: ir_JVC.cpp:78
IRsend::onTimePeriod
uint16_t onTimePeriod
Definition: IRsend.h:653
IRsend::sendAiwaRCT501
void sendAiwaRCT501(uint64_t data, uint16_t nbits=kAiwaRcT501Bits, uint16_t repeat=kAiwaRcT501MinRepeats)
Send an Aiwa RC T501 formatted message. Status: BETA / Should work.
Definition: ir_Aiwa.cpp:30
IRsend::IRpin
uint16_t IRpin
Definition: IRsend.h:655
kHitachiAc1StateLength
const uint16_t kHitachiAc1StateLength
Definition: IRremoteESP8266.h:895
kCoolixBits
const uint16_t kCoolixBits
Definition: IRremoteESP8266.h:824
kMitsubishi112MinRepeat
const uint16_t kMitsubishi112MinRepeat
Definition: IRremoteESP8266.h:938
IRsend::sendSymphony
void sendSymphony(uint64_t data, uint16_t nbits=kSymphonyBits, uint16_t repeat=kSymphonyDefaultRepeat)
Send a Symphony packet. Status: STABLE / Should be working.
Definition: ir_Symphony.cpp:42
IRsend::sendGeneric
void sendGeneric(const uint16_t headermark, const uint32_t headerspace, const uint16_t onemark, const uint32_t onespace, const uint16_t zeromark, const uint32_t zerospace, const uint16_t footermark, const uint32_t gap, const uint64_t data, const uint16_t nbits, const uint16_t frequency, const bool MSBfirst, const uint16_t repeat, const uint8_t dutycycle)
Generic method for sending simple protocol messages. Will send leading or trailing 0's if the nbits i...
Definition: IRsend.cpp:307
stdAc::fanspeed_t::kHigh
@ kHigh
kSamsung36Bits
const uint16_t kSamsung36Bits
Definition: IRremoteESP8266.h:968
kMagiquestBits
const uint16_t kMagiquestBits
Definition: IRremoteESP8266.h:921
IRsend::minRepeats
static uint16_t minRepeats(const decode_type_t protocol)
Get the minimum number of repeats for a given protocol.
Definition: IRsend.cpp:557
kNeoclimaStateLength
const uint16_t kNeoclimaStateLength
Definition: IRremoteESP8266.h:949
gree_ac_remote_model_t
gree_ac_remote_model_t
Gree A/C model numbers.
Definition: IRsend.h:129
kSamsungAcDefaultRepeat
const uint16_t kSamsungAcDefaultRepeat
Definition: IRremoteESP8266.h:973
kSanyoLC7461Bits
const uint16_t kSanyoLC7461Bits
Definition: IRremoteESP8266.h:977
stdAc::state_t::degrees
float degrees
Definition: IRsend.h:102
IRsend::_dutycycle
uint8_t _dutycycle
Definition: IRsend.h:657
stdAc::state_t::celsius
bool celsius
Definition: IRsend.h:103
IRsend::sendLG2
void sendLG2(uint64_t data, uint16_t nbits=kLgBits, uint16_t repeat=kNoRepeat)
Send an LG Variant-2 formatted message. (LG2) Status: Beta / Should be working.
Definition: ir_LG.cpp:103
kZepealMinRepeat
const uint16_t kZepealMinRepeat
Definition: IRremoteESP8266.h:1011
IRsend::mark
VIRTUAL uint16_t mark(uint16_t usec)
Modulate the IR LED for the given period (usec) and at the duty cycle set.
Definition: IRsend.cpp:157
ARRY4
@ ARRY4
Definition: IRsend.h:125
ARDB1
@ ARDB1
Definition: IRsend.h:122
stdAc::fanspeed_t::kMax
@ kMax
IRsend::sendDaikin152
void sendDaikin152(const unsigned char data[], const uint16_t nbytes=kDaikin152StateLength, const uint16_t repeat=kDaikin152DefaultRepeat)
Send a Daikin152 (152-bit) A/C formatted message. Status: STABLE / Known Working.
Definition: ir_Daikin.cpp:3169
IRsend::sendAmcor
void sendAmcor(const unsigned char data[], const uint16_t nbytes=kAmcorStateLength, const uint16_t repeat=kAmcorDefaultRepeat)
Send a Amcor HVAC formatted message. Status: STABLE / Reported as working.
Definition: ir_Amcor.cpp:39
stdAc::state_t::swingv
stdAc::swingv_t swingv
Definition: IRsend.h:105
IRsend::sendLasertag
void sendLasertag(uint64_t data, uint16_t nbits=kLasertagBits, uint16_t repeat=kLasertagMinRepeat)
Send a Lasertag packet/message. Status: STABLE / Working.
Definition: ir_Lasertag.cpp:33
hitachi_ac1_remote_model_t
hitachi_ac1_remote_model_t
HITACHI_AC1 A/C model numbers.
Definition: IRsend.h:135
IRsend::sendEpson
void sendEpson(uint64_t data, uint16_t nbits=kEpsonBits, uint16_t repeat=kEpsonMinRepeat)
Send an Epson formatted message. Status: Beta / Probably works.
Definition: ir_Epson.cpp:24
IRsend
Class for sending all basic IR protocols.
Definition: IRsend.h:170
IRsend::sendManchesterData
void sendManchesterData(const uint16_t half_period, const uint64_t data, const uint16_t nbits, const bool MSBfirst=true, const bool GEThomas=true)
Generic method for sending Manchester code data. Will send leading or trailing 0's if the nbits is la...
Definition: IRsend.cpp:445
kAiwaRcT501MinRepeats
const uint16_t kAiwaRcT501MinRepeats
Definition: IRremoteESP8266.h:816
IRsend::calibrate
int8_t calibrate(uint16_t hz=38000U)
Calculate & set any offsets to account for execution times during sending.
Definition: IRsend.cpp:207
stdAc::fanspeed_t::kMin
@ kMin
kMitsubishiMinRepeat
const uint16_t kMitsubishiMinRepeat
Definition: IRremoteESP8266.h:929
IRsend::encodeSanyoLC7461
uint64_t encodeSanyoLC7461(uint16_t address, uint8_t command)
Construct a Sanyo LC7461 message.
Definition: ir_Sanyo.cpp:61
ARJW2
@ ARJW2
Definition: IRsend.h:124
kArgoStateLength
const uint16_t kArgoStateLength
Definition: IRremoteESP8266.h:821
stdAc::swingh_t::kRightMax
@ kRightMax
IRsend::encodeSAMSUNG
uint32_t encodeSAMSUNG(const uint8_t customer, const uint8_t command)
Construct a raw Samsung message from the supplied customer(address) & command. Status: STABLE / Shoul...
Definition: ir_Samsung.cpp:89
kPanasonicBits
const uint16_t kPanasonicBits
Definition: IRremoteESP8266.h:952
stdAc::state_t::model
int16_t model
Definition: IRsend.h:99
IRsend::toggleRC6
uint64_t toggleRC6(const uint64_t data, const uint16_t nbits=kRC6Mode0Bits)
Flip the toggle bit of a Philips RC-6 data message. Used to indicate a change of remote button's stat...
Definition: ir_RC5_RC6.cpp:157
IRsend::sendSony
void sendSony(const uint64_t data, const uint16_t nbits=kSony20Bits, const uint16_t repeat=kSonyMinRepeat)
Send a standard Sony/SIRC(Serial Infra-Red Control) message. (40kHz) Status: STABLE / Known working.
Definition: ir_Sony.cpp:46
kDutyMax
const uint8_t kDutyMax
Definition: IRsend.h:36
IRsend::_freq_unittest
uint32_t _freq_unittest
Definition: IRsend.h:651
kDaikin152StateLength
const uint16_t kDaikin152StateLength
Definition: IRremoteESP8266.h:852
IRsend::encodeLG
uint32_t encodeLG(uint16_t address, uint16_t command)
Construct a raw 28-bit LG message code from the supplied address & command. Status: STABLE / Works.
Definition: ir_LG.cpp:131
IRsend::sendRaw
void sendRaw(const uint16_t buf[], const uint16_t len, const uint16_t hz)
Send a raw IRremote message.
Definition: IRsend.cpp:539
IRsend::sendMultibrackets
void sendMultibrackets(const uint64_t data, const uint16_t nbits=kMultibracketsBits, const uint16_t repeat=kMultibracketsDefaultRepeat)
Send a Multibrackets formatted message. Status: BETA / Appears to be working.
Definition: ir_Multibrackets.cpp:26
stdAc::swingv_t::kHigh
@ kHigh
kHaierACYRW02StateLength
const uint16_t kHaierACYRW02StateLength
Definition: IRremoteESP8266.h:889
IRsend::encodeRC6
uint64_t encodeRC6(const uint32_t address, const uint8_t command, const uint16_t mode=kRC6Mode0Bits)
Encode a Philips RC-6 data message. Status: Beta / Should be working.
Definition: ir_RC5_RC6.cpp:171
kMultibracketsDefaultRepeat
const uint16_t kMultibracketsDefaultRepeat
Definition: IRremoteESP8266.h:946
IRsend::sendMitsubishi112
void sendMitsubishi112(const unsigned char data[], const uint16_t nbytes=kMitsubishi112StateLength, const uint16_t repeat=kMitsubishi112MinRepeat)
Send a Mitsubishi 112-bit A/C formatted message. (MITSUBISHI112) Status: Stable / Reported as working...
Definition: ir_Mitsubishi.cpp:1184
kPanasonicCkp
@ kPanasonicCkp
Definition: IRsend.h:147
IRsend::sendWhirlpoolAC
void sendWhirlpoolAC(const unsigned char data[], const uint16_t nbytes=kWhirlpoolAcStateLength, const uint16_t repeat=kWhirlpoolAcDefaultRepeat)
Send a Whirlpool A/C message. Status: BETA / Probably works.
Definition: ir_Whirlpool.cpp:50
stdAc::fanspeed_t::kLastFanspeedEnum
@ kLastFanspeedEnum
IRsend::sendData
void sendData(uint16_t onemark, uint32_t onespace, uint16_t zeromark, uint32_t zerospace, uint64_t data, uint16_t nbits, bool MSBfirst=true)
Generic method for sending data that is common to most protocols. Will send leading or trailing 0's i...
Definition: IRsend.cpp:246
kGoodweatherBits
const uint16_t kGoodweatherBits
Definition: IRremoteESP8266.h:881
IRsend::sendKelvinator
void sendKelvinator(const unsigned char data[], const uint16_t nbytes=kKelvinatorStateLength, const uint16_t repeat=kKelvinatorDefaultRepeat)
Send a Kelvinator A/C message. Status: STABLE / Known working.
Definition: ir_Kelvinator.cpp:78
IRsend::ledOn
VIRTUAL void ledOn()
Turn on the IR LED.
Definition: IRsend.cpp:60
kGicableMinRepeat
const uint16_t kGicableMinRepeat
Definition: IRremoteESP8266.h:880
IRsend::sendHitachiAC1
void sendHitachiAC1(const unsigned char data[], const uint16_t nbytes=kHitachiAc1StateLength, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi 13 byte/224-bit A/C formatted message. (HITACHI_AC1) Status: STABLE / Confirmed Workin...
Definition: ir_Hitachi.cpp:87
kDaikin216StateLength
const uint16_t kDaikin216StateLength
Definition: IRremoteESP8266.h:858
IRsend::sendGICable
void sendGICable(uint64_t data, uint16_t nbits=kGicableBits, uint16_t repeat=kGicableMinRepeat)
Send a raw G.I. Cable formatted message. Status: Alpha / Untested.
Definition: ir_GICable.cpp:37
kSamsungAcStateLength
const uint16_t kSamsungAcStateLength
Definition: IRremoteESP8266.h:969
DG11J13A
@ DG11J13A
Definition: IRsend.h:153
IRsend::sendSharp
void sendSharp(const uint16_t address, const uint16_t command, const uint16_t nbits=kSharpBits, const uint16_t repeat=kNoRepeat)
Send a Sharp message Status: DEPRECATED / Previously working fine.
Definition: ir_Sharp.cpp:134
panasonic_ac_remote_model_t
panasonic_ac_remote_model_t
Panasonic A/C model numbers.
Definition: IRsend.h:141
IRremoteESP8266.h
stdAc::swingh_t
swingh_t
Common A/C settings for Horizontal Swing.
Definition: IRsend.h:83
stdAc::opmode_t::kHeat
@ kHeat
AKB75215403
@ AKB75215403
Definition: IRsend.h:160
IRsend::sendDenon
void sendDenon(uint64_t data, uint16_t nbits=kDenonBits, uint16_t repeat=kNoRepeat)
Send a Denon formatted message. Status: STABLE / Should be working.
Definition: ir_Denon.cpp:48
IRsend::sendCarrierAC64
void sendCarrierAC64(uint64_t data, uint16_t nbits=kCarrierAc64Bits, uint16_t repeat=kCarrierAc64MinRepeat)
Send a Carrier 64bit HVAC formatted message. Status: STABLE / Known to be working.
Definition: ir_Carrier.cpp:178
IRsend::sendPioneer
void sendPioneer(const uint64_t data, const uint16_t nbits=kPioneerBits, const uint16_t repeat=kNoRepeat)
Send a raw Pioneer formatted message. Status: STABLE / Expected to be working.
Definition: ir_Pioneer.cpp:46
YAW1F
@ YAW1F
Definition: IRsend.h:130
kSymphonyBits
const uint16_t kSymphonyBits
Definition: IRremoteESP8266.h:992
stdAc::swingh_t::kAuto
@ kAuto
kDaikin128StateLength
const uint16_t kDaikin128StateLength
Definition: IRremoteESP8266.h:849
kRC6Mode0Bits
const uint16_t kRC6Mode0Bits
Definition: IRremoteESP8266.h:964
kDaikin176DefaultRepeat
const uint16_t kDaikin176DefaultRepeat
Definition: IRremoteESP8266.h:857
IRsend::sendPanasonic64
void sendPanasonic64(const uint64_t data, const uint16_t nbits=kPanasonicBits, const uint16_t repeat=kNoRepeat)
Send a Panasonic formatted message. Status: STABLE / Should be working.
Definition: ir_Panasonic.cpp:74
kMitsubishiHeavy152MinRepeat
const uint16_t kMitsubishiHeavy152MinRepeat
Definition: IRremoteESP8266.h:944
IRsend::sendHaierAC
void sendHaierAC(const unsigned char data[], const uint16_t nbytes=kHaierACStateLength, const uint16_t repeat=kHaierAcDefaultRepeat)
Send a Haier A/C formatted message. (HSU07-HEA03 remote) Status: STABLE / Known to be working.
Definition: ir_Haier.cpp:45
IRsend::sendSamsung36
void sendSamsung36(const uint64_t data, const uint16_t nbits=kSamsung36Bits, const uint16_t repeat=kNoRepeat)
Send a Samsung 36-bit formatted message. Status: Alpha / Experimental.
Definition: ir_Samsung.cpp:154
kNoRepeat
const uint16_t kNoRepeat
Definition: IRremoteESP8266.h:810
IRsend::offTimePeriod
uint16_t offTimePeriod
Definition: IRsend.h:654
kSony20Bits
const uint16_t kSony20Bits
Definition: IRremoteESP8266.h:989
kMitsubishiACMinRepeat
const uint16_t kMitsubishiACMinRepeat
Definition: IRremoteESP8266.h:932
IRsend::sendSony38
void sendSony38(const uint64_t data, const uint16_t nbits=kSony20Bits, const uint16_t repeat=kSonyMinRepeat+1)
Send an alternative 38kHz Sony/SIRC(Serial Infra-Red Control) message. Status: STABLE / Known working...
Definition: ir_Sony.cpp:62
IRsend::encodeSony
uint32_t encodeSony(const uint16_t nbits, const uint16_t command, const uint16_t address, const uint16_t extended=0)
Convert Sony/SIRC command, address, & extended bits into sendSony format. Status: STABLE / Should be ...
Definition: ir_Sony.cpp:88
stdAc::swingv_t::kAuto
@ kAuto
kPanasonicUnknown
@ kPanasonicUnknown
Definition: IRsend.h:142
fujitsu_ac_remote_model_t
fujitsu_ac_remote_model_t
Fujitsu A/C model numbers.
Definition: IRsend.h:120
kPanasonicAcDefaultRepeat
const uint16_t kPanasonicAcDefaultRepeat
Definition: IRremoteESP8266.h:958
kSymphonyDefaultRepeat
const uint16_t kSymphonyDefaultRepeat
Definition: IRremoteESP8266.h:993
ARREB1E
@ ARREB1E
Definition: IRsend.h:123
IRsend::sendPanasonicAC
void sendPanasonicAC(const unsigned char data[], const uint16_t nbytes=kPanasonicAcStateLength, const uint16_t repeat=kPanasonicAcDefaultRepeat)
Send a Panasonic A/C message. Status: STABLE / Work with real device(s).
Definition: ir_Panasonic.cpp:173
stdAc::state_t::swingh
stdAc::swingh_t swingh
Definition: IRsend.h:106
kCoolixDefaultRepeat
const uint16_t kCoolixDefaultRepeat
Definition: IRremoteESP8266.h:825
kPanasonicNke
@ kPanasonicNke
Definition: IRsend.h:144
GE6711AR2853M
@ GE6711AR2853M
Definition: IRsend.h:159
IRsend::sendHitachiAc3
void sendHitachiAc3(const unsigned char data[], const uint16_t nbytes, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi(3) A/C formatted message. (HITACHI_AC3) Status: STABLE / Working fine.
Definition: ir_Hitachi.cpp:1361
kTcl112AcDefaultRepeat
const uint16_t kTcl112AcDefaultRepeat
Definition: IRremoteESP8266.h:996
kDelonghiAcDefaultRepeat
const uint16_t kDelonghiAcDefaultRepeat
Definition: IRremoteESP8266.h:862
IRsend::sendToshibaAC
void sendToshibaAC(const unsigned char data[], const uint16_t nbytes=kToshibaACStateLength, const uint16_t repeat=kToshibaACMinRepeat)
Send a Toshiba A/C message. Status: STABLE / Working.
Definition: ir_Toshiba.cpp:44
kCoronaAcStateLength
const uint16_t kCoronaAcStateLength
Definition: IRremoteESP8266.h:833
IRsend::sendRC5
void sendRC5(const uint64_t data, uint16_t nbits=kRC5XBits, const uint16_t repeat=kNoRepeat)
Send a Philips RC-5/RC-5X packet. Status: RC-5 (stable), RC-5X (alpha)
Definition: ir_RC5_RC6.cpp:61
IRsend::sendMitsubishi
void sendMitsubishi(uint64_t data, uint16_t nbits=kMitsubishiBits, uint16_t repeat=kMitsubishiMinRepeat)
Send the supplied Mitsubishi 16-bit message. Status: STABLE / Working.
Definition: ir_Mitsubishi.cpp:104
IRsend::sendAirwell
void sendAirwell(uint64_t data, uint16_t nbits=kAirwellBits, uint16_t repeat=kAirwellMinRepeats)
Send an Airwell Manchester Code formatted message. Status: BETA / Appears to be working.
Definition: ir_Airwell.cpp:28
kDoshishaBits
const uint16_t kDoshishaBits
Definition: IRremoteESP8266.h:868
kCarrierAc40Bits
const uint16_t kCarrierAc40Bits
Definition: IRremoteESP8266.h:828
stdAc::fanspeed_t::kMedium
@ kMedium
kTrotecStateLength
const uint16_t kTrotecStateLength
Definition: IRremoteESP8266.h:1002
kWhirlpoolAcDefaultRepeat
const uint16_t kWhirlpoolAcDefaultRepeat
Definition: IRremoteESP8266.h:1007
IRsend::sendSAMSUNG
void sendSAMSUNG(const uint64_t data, const uint16_t nbits=kSamsungBits, const uint16_t repeat=kNoRepeat)
Send a 32-bit Samsung formatted message. Status: STABLE / Should be working.
Definition: ir_Samsung.cpp:75
kHitachiAc424StateLength
const uint16_t kHitachiAc424StateLength
Definition: IRremoteESP8266.h:905
kMitsubishiHeavy88StateLength
const uint16_t kMitsubishiHeavy88StateLength
Definition: IRremoteESP8266.h:939
IRsend::sendNeoclima
void sendNeoclima(const unsigned char data[], const uint16_t nbytes=kNeoclimaStateLength, const uint16_t repeat=kNeoclimaMinRepeat)
Send a Neoclima message. Status: STABLE / Known to be working.
Definition: ir_Neoclima.cpp:41
IRsend::sendSharpRaw
void sendSharpRaw(const uint64_t data, const uint16_t nbits=kSharpBits, const uint16_t repeat=kNoRepeat)
Send a (raw) Sharp message.
Definition: ir_Sharp.cpp:64
stdAc::opmode_t::kLastOpmodeEnum
@ kLastOpmodeEnum
IRsend::sendGree
void sendGree(const uint64_t data, const uint16_t nbits=kGreeBits, const uint16_t repeat=kGreeDefaultRepeat)
Send a Gree Heat Pump formatted message. Status: STABLE / Working.
Definition: ir_Gree.cpp:76
stdAc::opmode_t::kOff
@ kOff
kMitsubishiBits
const uint16_t kMitsubishiBits
Definition: IRremoteESP8266.h:926
IRsend::sendMitsubishi136
void sendMitsubishi136(const unsigned char data[], const uint16_t nbytes=kMitsubishi136StateLength, const uint16_t repeat=kMitsubishi136MinRepeat)
Send a Mitsubishi 136-bit A/C message. (MITSUBISHI136) Status: BETA / Probably working....
Definition: ir_Mitsubishi.cpp:812
stdAc
Enumerators and Structures for the Common A/C API.
Definition: IRsend.h:44
R_LT0541_HTA_A
@ R_LT0541_HTA_A
Definition: IRsend.h:136
kPanasonicAcStateLength
const uint16_t kPanasonicAcStateLength
Definition: IRremoteESP8266.h:954
IRsend::sendMitsubishiHeavy88
void sendMitsubishiHeavy88(const unsigned char data[], const uint16_t nbytes=kMitsubishiHeavy88StateLength, const uint16_t repeat=kMitsubishiHeavy88MinRepeat)
Send a MitsubishiHeavy 88-bit A/C message. Status: BETA / Appears to be working. Needs testing agains...
Definition: ir_MitsubishiHeavy.cpp:45
IRsend::sendVestelAc
void sendVestelAc(const uint64_t data, const uint16_t nbits=kVestelAcBits, const uint16_t repeat=kNoRepeat)
Send a Vestel message Status: STABLE / Working.
Definition: ir_Vestel.cpp:38
kMideaBits
const uint16_t kMideaBits
Definition: IRremoteESP8266.h:922
kKelvinatorStateLength
const uint16_t kKelvinatorStateLength
Definition: IRremoteESP8266.h:910
IRsend::sendMidea24
void sendMidea24(const uint64_t data, const uint16_t nbits=kMidea24Bits, const uint16_t repeat=kMidea24MinRepeat)
Send a Midea24 formatted message. Status: STABLE / Confirmed working on a real device.
Definition: ir_Midea.cpp:479
IRsend::defaultBits
static uint16_t defaultBits(const decode_type_t protocol)
Get the default number of bits for a given protocol.
Definition: IRsend.cpp:598
stdAc::state_t::protocol
decode_type_t protocol
Definition: IRsend.h:98
stdAc::swingv_t::kLastSwingvEnum
@ kLastSwingvEnum
kDaikin216DefaultRepeat
const uint16_t kDaikin216DefaultRepeat
Definition: IRremoteESP8266.h:860
stdAc::opmode_t::kDry
@ kDry
stdAc::state_t::beep
bool beep
Definition: IRsend.h:113
kWhirlpoolAcStateLength
const uint16_t kWhirlpoolAcStateLength
Definition: IRremoteESP8266.h:1005
kNECBits
const uint16_t kNECBits
Definition: IRremoteESP8266.h:948
kDenonBits
const uint16_t kDenonBits
Definition: IRremoteESP8266.h:863
kZepealBits
const uint16_t kZepealBits
Definition: IRremoteESP8266.h:1010
stdAc::state_t::filter
bool filter
Definition: IRsend.h:111
kCarrierAc40MinRepeat
const uint16_t kCarrierAc40MinRepeat
Definition: IRremoteESP8266.h:829
kMidea24Bits
const uint16_t kMidea24Bits
Definition: IRremoteESP8266.h:924
IRsend::sendDelonghiAc
void sendDelonghiAc(uint64_t data, uint16_t nbits=kDelonghiAcBits, uint16_t repeat=kDelonghiAcDefaultRepeat)
Send a Delonghi A/C formatted message. Status: STABLE / Reported as working on a real device.
Definition: ir_Delonghi.cpp:38
kDaikin160DefaultRepeat
const uint16_t kDaikin160DefaultRepeat
Definition: IRremoteESP8266.h:848
IRsend::_sendSony
void _sendSony(const uint64_t data, const uint16_t nbits, const uint16_t repeat, const uint16_t freq)
Internal procedure to generate a Sony/SIRC(Serial Infra-Red Control) message Status: STABLE / Known w...
Definition: ir_Sony.cpp:73
kToshibaACMinRepeat
const uint16_t kToshibaACMinRepeat
Definition: IRremoteESP8266.h:1001
IRsend::enableIROut
void enableIROut(uint32_t freq, uint8_t duty=kDutyDefault)
Set the output frequency modulation and duty cycle.
Definition: IRsend.cpp:92
stdAc::swingv_t::kMiddle
@ kMiddle
kHitachiAc344StateLength
const uint16_t kHitachiAc344StateLength
Definition: IRremoteESP8266.h:903
kPanasonicDke
@ kPanasonicDke
Definition: IRsend.h:145
kCarrierAc64Bits
const uint16_t kCarrierAc64Bits
Definition: IRremoteESP8266.h:830
kDaikin128DefaultRepeat
const uint16_t kDaikin128DefaultRepeat
Definition: IRremoteESP8266.h:851
kPioneerBits
const uint16_t kPioneerBits
Definition: IRremoteESP8266.h:959
kSharpAcStateLength
const uint16_t kSharpAcStateLength
Definition: IRremoteESP8266.h:982
IRsend::sendSharpAc
void sendSharpAc(const unsigned char data[], const uint16_t nbytes=kSharpAcStateLength, const uint16_t repeat=kSharpAcDefaultRepeat)
Send a Sharp A/C message. Status: Alpha / Untested.
Definition: ir_Sharp.cpp:227
kPanasonicLke
@ kPanasonicLke
Definition: IRsend.h:143
kGreeBits
const uint16_t kGreeBits
Definition: IRremoteESP8266.h:884
IRsend::sendCarrierAC
void sendCarrierAC(uint64_t data, uint16_t nbits=kCarrierAcBits, uint16_t repeat=kCarrierAcMinRepeat)
Send a Carrier HVAC formatted message. Status: STABLE / Works on real devices.
Definition: ir_Carrier.cpp:57
kJvcBits
const uint16_t kJvcBits
Definition: IRremoteESP8266.h:909
kDaikinStateLength
const uint16_t kDaikinStateLength
Definition: IRremoteESP8266.h:836
kLasertagBits
const uint16_t kLasertagBits
Definition: IRremoteESP8266.h:913
IRsend::sendDaikin160
void sendDaikin160(const unsigned char data[], const uint16_t nbytes=kDaikin160StateLength, const uint16_t repeat=kDaikin160DefaultRepeat)
Send a Daikin160 (160-bit) A/C formatted message. Status: STABLE / Confirmed working.
Definition: ir_Daikin.cpp:1840
kAiwaRcT501Bits
const uint16_t kAiwaRcT501Bits
Definition: IRremoteESP8266.h:815
IRsend::sendDaikin2
void sendDaikin2(const unsigned char data[], const uint16_t nbytes=kDaikin2StateLength, const uint16_t repeat=kDaikin2DefaultRepeat)
Send a Daikin2 (312-bit) A/C formatted message. Status: STABLE / Expected to work.
Definition: ir_Daikin.cpp:689
ARRAH2E
@ ARRAH2E
Definition: IRsend.h:121
kToshibaACStateLength
const uint16_t kToshibaACStateLength
Definition: IRremoteESP8266.h:999
kTecoBits
const uint16_t kTecoBits
Definition: IRremoteESP8266.h:997
IRsend::sendMitsubishi2
void sendMitsubishi2(uint64_t data, uint16_t nbits=kMitsubishiBits, uint16_t repeat=kMitsubishiMinRepeat)
Send a supplied second variant Mitsubishi 16-bit message. Status: BETA / Probably works.
Definition: ir_Mitsubishi.cpp:161
kInaxMinRepeat
const uint16_t kInaxMinRepeat
Definition: IRremoteESP8266.h:908
IRsend::ledOff
VIRTUAL void ledOff()
Turn off the IR LED.
Definition: IRsend.cpp:53
stdAc::swingh_t::kLastSwinghEnum
@ kLastSwinghEnum
kSherwoodBits
const uint8_t kSherwoodBits
Definition: IRremoteESP8266.h:985
stdAc::state_t::mode
stdAc::opmode_t mode
Definition: IRsend.h:101
kDaikinDefaultRepeat
const uint16_t kDaikinDefaultRepeat
Definition: IRremoteESP8266.h:840
kDaikin64DefaultRepeat
const uint16_t kDaikin64DefaultRepeat
Definition: IRremoteESP8266.h:845
IRsend::sendInax
void sendInax(const uint64_t data, const uint16_t nbits=kInaxBits, const uint16_t repeat=kInaxMinRepeat)
Send a Inax Toilet formatted message. Status: STABLE / Working.
Definition: ir_Inax.cpp:31
lg_ac_remote_model_t
lg_ac_remote_model_t
LG A/C model numbers.
Definition: IRsend.h:158
kMitsubishiHeavy88MinRepeat
const uint16_t kMitsubishiHeavy88MinRepeat
Definition: IRremoteESP8266.h:941
stdAc::fanspeed_t::kAuto
@ kAuto
kHitachiAcDefaultRepeat
const uint16_t kHitachiAcDefaultRepeat
Definition: IRremoteESP8266.h:894
stdAc::state_t::econo
bool econo
Definition: IRsend.h:109
IRsend::sendSherwood
void sendSherwood(uint64_t data, uint16_t nbits=kSherwoodBits, uint16_t repeat=kSherwoodMinRepeat)
Send an IR command to a Sherwood device. Status: STABLE / Known working.
Definition: ir_Sherwood.cpp:21
kMidea24MinRepeat
const uint16_t kMidea24MinRepeat
Definition: IRremoteESP8266.h:925
IRsend::sendMitsubishiHeavy152
void sendMitsubishiHeavy152(const unsigned char data[], const uint16_t nbytes=kMitsubishiHeavy152StateLength, const uint16_t repeat=kMitsubishiHeavy152MinRepeat)
Send a MitsubishiHeavy 152-bit A/C message. Status: BETA / Appears to be working. Needs testing again...
Definition: ir_MitsubishiHeavy.cpp:62
kDishBits
const uint16_t kDishBits
Definition: IRremoteESP8266.h:866
kDishMinRepeat
const uint16_t kDishMinRepeat
Definition: IRremoteESP8266.h:867
stdAc::swingv_t::kLowest
@ kLowest
IRsend::sendPanasonic
void sendPanasonic(const uint16_t address, const uint32_t data, const uint16_t nbits=kPanasonicBits, const uint16_t repeat=kNoRepeat)
Send a Panasonic formatted message. Status: STABLE, but DEPRECATED.
Definition: ir_Panasonic.cpp:91
IRsend::space
VIRTUAL void space(uint32_t usec)
Turn the pin (LED) off for a given time. Sends an IR space for the specified number of microseconds....
Definition: IRsend.cpp:194
kHitachiAc2StateLength
const uint16_t kHitachiAc2StateLength
Definition: IRremoteESP8266.h:897
IRsend::sendGC
void sendGC(uint16_t buf[], uint16_t len)
Send a shortened GlobalCache (GC) IRdb/control tower formatted message. Status: STABLE / Known workin...
Definition: ir_GlobalCache.cpp:35
IRsend::encodeRC5
uint16_t encodeRC5(const uint8_t address, const uint8_t command, const bool key_released=false)
Encode a Philips RC-5 data message. Status: Beta / Should be working.
Definition: ir_RC5_RC6.cpp:115
IRsend::sendJVC
void sendJVC(uint64_t data, uint16_t nbits=kJvcBits, uint16_t repeat=kNoRepeat)
Send a JVC formatted message. Status: STABLE / Working.
Definition: ir_JVC.cpp:46
IRsend::sendDoshisha
void sendDoshisha(const uint64_t data, uint16_t nbits=kDoshishaBits, const uint16_t repeat=kNoRepeat)
Send a Doshisha formatted message. Status: STABLE / Works on real device.
Definition: ir_Doshisha.cpp:53
stdAc::swingh_t::kOff
@ kOff
IRsend::toggleRC5
uint64_t toggleRC5(const uint64_t data)
Flip the toggle bit of a Philips RC-5/RC-5X data message. Used to indicate a change of remote button'...
Definition: ir_RC5_RC6.cpp:142
IRsend::sendDaikin
void sendDaikin(const unsigned char data[], const uint16_t nbytes=kDaikinStateLength, const uint16_t repeat=kDaikinDefaultRepeat)
Send a Daikin 280-bit A/C formatted message. Status: STABLE.
Definition: ir_Daikin.cpp:61
kCarrierAcMinRepeat
const uint16_t kCarrierAcMinRepeat
Definition: IRremoteESP8266.h:827
kNikaiBits
const uint16_t kNikaiBits
Definition: IRremoteESP8266.h:947
IRsend::encodeMagiQuest
uint64_t encodeMagiQuest(const uint32_t wand_id, const uint16_t magnitude)
Encode a MagiQuest wand_id, and a magnitude into a single 64bit value. (Only 48 bits of real data + 8...
Definition: ir_Magiquest.cpp:42
stdAc::swingh_t::kWide
@ kWide
kKelvinatorDefaultRepeat
const uint16_t kKelvinatorDefaultRepeat
Definition: IRremoteESP8266.h:912
IRsend::sendHitachiAC2
void sendHitachiAC2(const unsigned char data[], const uint16_t nbytes=kHitachiAc2StateLength, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi 53 byte/424-bit A/C formatted message. (HITACHI_AC2) Basically the same as sendHitatch...
Definition: ir_Hitachi.cpp:105
kLutronBits
const uint16_t kLutronBits
Definition: IRremoteESP8266.h:920
IRsend::sendDaikin128
void sendDaikin128(const unsigned char data[], const uint16_t nbytes=kDaikin128StateLength, const uint16_t repeat=kDaikin128DefaultRepeat)
Send a Daikin128 (128-bit) A/C formatted message. Status: STABLE / Known Working.
Definition: ir_Daikin.cpp:2605
IRsend::sendCarrierAC40
void sendCarrierAC40(uint64_t data, uint16_t nbits=kCarrierAc40Bits, uint16_t repeat=kCarrierAc40MinRepeat)
Send a Carrier 40bit HVAC formatted message. Status: STABLE / Tested against a real device.
Definition: ir_Carrier.cpp:129
kSharpAcDefaultRepeat
const uint16_t kSharpAcDefaultRepeat
Definition: IRremoteESP8266.h:984
stdAc::swingv_t::kHighest
@ kHighest
IRsend::sendTrotec
void sendTrotec(const unsigned char data[], const uint16_t nbytes=kTrotecStateLength, const uint16_t repeat=kTrotecDefaultRepeat)
Send a Trotec message. Status: Beta / Probably Working.
Definition: ir_Trotec.cpp:43
IRsend::sendCoronaAc
void sendCoronaAc(const uint8_t data[], const uint16_t nbytes=kCoronaAcStateLength, const uint16_t repeat=kNoRepeat)
Send a CoronaAc formatted message. Status: STABLE / Working on real device.
Definition: ir_Corona.cpp:51
stdAc::state_t::light
bool light
Definition: IRsend.h:110
stdAc::state_t::fanspeed
stdAc::fanspeed_t fanspeed
Definition: IRsend.h:104
kTcl112AcStateLength
const uint16_t kTcl112AcStateLength
Definition: IRremoteESP8266.h:994
IRsend::sendRCMM
void sendRCMM(uint64_t data, uint16_t nbits=kRCMMBits, uint16_t repeat=kNoRepeat)
Send a Philips RC-MM packet. Status: STABLE / Should be working.
Definition: ir_RCMM.cpp:46
IRsend::sendManchester
void sendManchester(const uint16_t headermark, const uint32_t headerspace, const uint16_t half_period, const uint16_t footermark, const uint32_t gap, const uint64_t data, const uint16_t nbits, const uint16_t frequency=38, const bool MSBfirst=true, const uint16_t repeat=kNoRepeat, const uint8_t dutycycle=kDutyDefault, const bool GEThomas=true)
Generic method for sending Manchester code messages. Will send leading or trailing 0's if the nbits i...
Definition: IRsend.cpp:506
kDaikin160StateLength
const uint16_t kDaikin160StateLength
Definition: IRremoteESP8266.h:846
IRsend::sendHitachiAC
void sendHitachiAC(const unsigned char data[], const uint16_t nbytes=kHitachiAcStateLength, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi 28-byte/224-bit A/C formatted message. (HITACHI_AC) Status: STABLE / Working.
Definition: ir_Hitachi.cpp:66
kDaikin2StateLength
const uint16_t kDaikin2StateLength
Definition: IRremoteESP8266.h:841
IRsend::sendElectraAC
void sendElectraAC(const unsigned char data[], const uint16_t nbytes=kElectraAcStateLength, const uint16_t repeat=kNoRepeat)
Send a Electra A/C formatted message. Status: Alpha / Needs testing against a real device.
Definition: ir_Electra.cpp:41
stdAc::swingh_t::kMiddle
@ kMiddle
kSherwoodMinRepeat
const uint16_t kSherwoodMinRepeat
Definition: IRremoteESP8266.h:986
kCarrierAc64MinRepeat
const uint16_t kCarrierAc64MinRepeat
Definition: IRremoteESP8266.h:831
DG11J191
@ DG11J191
Definition: IRsend.h:154
IRsend::begin
void begin()
Enable the pin for output.
Definition: IRsend.cpp:45
IRsend::sendFujitsuAC
void sendFujitsuAC(const unsigned char data[], const uint16_t nbytes, const uint16_t repeat=kFujitsuAcMinRepeat)
Send a Fujitsu A/C formatted message. Status: STABLE / Known Good.
Definition: ir_Fujitsu.cpp:47
stdAc::swingh_t::kLeftMax
@ kLeftMax
IRsend::encodeSharp
uint32_t encodeSharp(const uint16_t address, const uint16_t command, const uint16_t expansion=1, const uint16_t check=0, const bool MSBfirst=false)
Encode a (raw) Sharp message from it's components. Status: STABLE / Works okay.
Definition: ir_Sharp.cpp:99
stdAc::opmode_t::kCool
@ kCool
kLegoPfBits
const uint16_t kLegoPfBits
Definition: IRremoteESP8266.h:915
kSharpBits
const uint16_t kSharpBits
Definition: IRremoteESP8266.h:981
stdAc::state_t::sleep
int16_t sleep
Definition: IRsend.h:114
stdAc::state_t::power
bool power
Definition: IRsend.h:100
stdAc::opmode_t::kFan
@ kFan
IRsend::sendHitachiAc424
void sendHitachiAc424(const unsigned char data[], const uint16_t nbytes=kHitachiAc424StateLength, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi 53-byte/424-bit A/C formatted message. (HITACHI_AC424) Status: STABLE / Reported as wo...
Definition: ir_Hitachi.cpp:949
IRsend::sendTeco
void sendTeco(const uint64_t data, const uint16_t nbits=kTecoBits, const uint16_t repeat=kNoRepeat)
Send a Teco A/C message. Status: Beta / Probably working.
Definition: ir_Teco.cpp:39
stdAc::swingv_t::kOff
@ kOff
kMitsubishi136StateLength
const uint16_t kMitsubishi136StateLength
Definition: IRremoteESP8266.h:933
IRsend::sendLutron
void sendLutron(uint64_t data, uint16_t nbits=kLutronBits, uint16_t repeat=kNoRepeat)
Send a Lutron formatted message. Status: Stable / Appears to be working for real devices.
Definition: ir_Lutron.cpp:41
IRsend::sendSamsungAC
void sendSamsungAC(const unsigned char data[], const uint16_t nbytes=kSamsungAcStateLength, const uint16_t repeat=kSamsungAcDefaultRepeat)
Send a Samsung A/C message. Status: Stable / Known working.
Definition: ir_Samsung.cpp:235
IRsend::encodePanasonic
uint64_t encodePanasonic(const uint16_t manufacturer, const uint8_t device, const uint8_t subdevice, const uint8_t function)
Calculate the raw Panasonic data based on device, subdevice, & function. Status: STABLE / Should be w...
Definition: ir_Panasonic.cpp:105
IRsend::sendSanyoLC7461
void sendSanyoLC7461(const uint64_t data, const uint16_t nbits=kSanyoLC7461Bits, const uint16_t repeat=kNoRepeat)
Send a Sanyo LC7461 message. Status: BETA / Probably works.
Definition: ir_Sanyo.cpp:93
IRsend::IRsend
IRsend(uint16_t IRsendPin, bool inverted=false, bool use_modulation=true)
Constructor for an IRsend object.
Definition: IRsend.cpp:28
IRsend::sendDISH
void sendDISH(uint64_t data, uint16_t nbits=kDishBits, uint16_t repeat=kDishMinRepeat)
Send a DISH NETWORK formatted message. Status: STABLE / Working.
Definition: ir_Dish.cpp:48
kRCMMBits
const uint16_t kRCMMBits
Definition: IRremoteESP8266.h:966
kVestelAcBits
const uint8_t kVestelAcBits
Definition: IRremoteESP8266.h:1009
kInaxBits
const uint16_t kInaxBits
Definition: IRremoteESP8266.h:907
YBOFB
@ YBOFB
Definition: IRsend.h:131
kLegoPfMinRepeat
const uint16_t kLegoPfMinRepeat
Definition: IRremoteESP8266.h:916
kAmcorDefaultRepeat
const uint16_t kAmcorDefaultRepeat
Definition: IRremoteESP8266.h:820
IRsend::sendDaikin216
void sendDaikin216(const unsigned char data[], const uint16_t nbytes=kDaikin216StateLength, const uint16_t repeat=kDaikin216DefaultRepeat)
Send a Daikin216 (216-bit) A/C formatted message. Status: Alpha / Untested on a real device.
Definition: ir_Daikin.cpp:1476
kSamsungBits
const uint16_t kSamsungBits
Definition: IRremoteESP8266.h:967
IRsend::encodePioneer
uint64_t encodePioneer(uint16_t address, uint16_t command)
Calculate the raw Pioneer data code based on two NEC sub-codes Status: STABLE / Expected to work.
Definition: ir_Pioneer.cpp:81
kDaikin64Bits
const uint16_t kDaikin64Bits
Definition: IRremoteESP8266.h:844
stdAc::state_t::quiet
bool quiet
Definition: IRsend.h:107
IRsend::encodeRC5X
uint16_t encodeRC5X(const uint8_t address, const uint8_t command, const bool key_released=false)
Encode a Philips RC-5X data message. Status: Beta / Should be working.
Definition: ir_RC5_RC6.cpp:127
stdAc::state_t
Structure to hold a common A/C state.
Definition: IRsend.h:97
kLasertagMinRepeat
const uint16_t kLasertagMinRepeat
Definition: IRremoteESP8266.h:914
kDutyDefault
const uint8_t kDutyDefault
Definition: IRsend.h:35
stdAc::state_t::turbo
bool turbo
Definition: IRsend.h:108
IRsend::sendMagiQuest
void sendMagiQuest(const uint64_t data, const uint16_t nbits=kMagiquestBits, const uint16_t repeat=kNoRepeat)
Send a MagiQuest formatted message. Status: Beta / Should be working.
Definition: ir_Magiquest.cpp:25
IRsend::modulation
bool modulation
Definition: IRsend.h:658
kNeoclimaMinRepeat
const uint16_t kNeoclimaMinRepeat
Definition: IRremoteESP8266.h:951
kMitsubishi112StateLength
const uint16_t kMitsubishi112StateLength
Definition: IRremoteESP8266.h:936
stdAc::fanspeed_t::kLow
@ kLow
IRsend::sendArgo
void sendArgo(const unsigned char data[], const uint16_t nbytes=kArgoStateLength, const uint16_t repeat=kArgoDefaultRepeat)
Send a Argo A/C formatted message. Status: BETA / Probably works.
Definition: ir_Argo.cpp:40
IRsend::sendTcl112Ac
void sendTcl112Ac(const unsigned char data[], const uint16_t nbytes=kTcl112AcStateLength, const uint16_t repeat=kTcl112AcDefaultRepeat)
Send a TCL 112-bit A/C message. Status: Beta / Probably working.
Definition: ir_Tcl.cpp:33
kPanasonicJke
@ kPanasonicJke
Definition: IRsend.h:146
stdAc::swingh_t::kRight
@ kRight
kSonyMinRepeat
const uint16_t kSonyMinRepeat
Definition: IRremoteESP8266.h:991
IRsend::sendCOOLIX
void sendCOOLIX(uint64_t data, uint16_t nbits=kCoolixBits, uint16_t repeat=kCoolixDefaultRepeat)
Send a Coolix message Status: STABLE / Confirmed Working.
Definition: ir_Coolix.cpp:51
kEpsonBits
const uint16_t kEpsonBits
Definition: IRremoteESP8266.h:869
IRsend::sendNEC
void sendNEC(uint64_t data, uint16_t nbits=kNECBits, uint16_t repeat=kNoRepeat)
Send a raw NEC(Renesas) formatted message. Status: STABLE / Known working.
Definition: ir_NEC.cpp:28
IRsend::sendMWM
void sendMWM(const unsigned char data[], const uint16_t nbytes, const uint16_t repeat=kNoRepeat)
Send a MWM packet/message. Status: Implemented.
Definition: ir_MWM.cpp:37
IRsend::sendDaikin64
void sendDaikin64(const uint64_t data, const uint16_t nbits=kDaikin64Bits, const uint16_t repeat=kDaikin64DefaultRepeat)
Send a Daikin64 (64-bit) A/C formatted message. Status: Beta / Probably Working.
Definition: ir_Daikin.cpp:3558
IRsend::sendRC6
void sendRC6(const uint64_t data, const uint16_t nbits=kRC6Mode0Bits, const uint16_t repeat=kNoRepeat)
Send a Philips RC-6 packet. Status: Stable.
Definition: ir_RC5_RC6.cpp:190
kPeriodOffset
const int8_t kPeriodOffset
Definition: IRsend.h:26
kLgBits
const uint16_t kLgBits
Definition: IRremoteESP8266.h:917
IRsend::sendDaikin176
void sendDaikin176(const unsigned char data[], const uint16_t nbytes=kDaikin176StateLength, const uint16_t repeat=kDaikin176DefaultRepeat)
Send a Daikin176 (176-bit) A/C formatted message. Status: Alpha / Untested on a real device.
Definition: ir_Daikin.cpp:2212
kGoodweatherMinRepeat
const uint16_t kGoodweatherMinRepeat
Definition: IRremoteESP8266.h:882
kElectraAcStateLength
const uint16_t kElectraAcStateLength
Definition: IRremoteESP8266.h:871
kGreeDefaultRepeat
const uint16_t kGreeDefaultRepeat
Definition: IRremoteESP8266.h:885
stdAc::opmode_t
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:46
IRsend::sendGoodweather
void sendGoodweather(const uint64_t data, const uint16_t nbits=kGoodweatherBits, const uint16_t repeat=kGoodweatherMinRepeat)
Send a Goodweather HVAC formatted message. Status: BETA / Needs testing on real device.
Definition: ir_Goodweather.cpp:33