-
Notifications
You must be signed in to change notification settings - Fork 833
/
IRremoteESP8266.h
1475 lines (1340 loc) · 49.1 KB
/
IRremoteESP8266.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/***************************************************
* IRremote for ESP8266
*
* Based on the IRremote library for Arduino by Ken Shirriff
* Version 0.11 August, 2009
* Copyright 2009 Ken Shirriff
* For details, see http://arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
*
* Edited by Mitra to add new controller SANYO
*
* Interrupt code based on NECIRrcv by Joe Knapp
* http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1210243556
* Also influenced by http://zovirl.com/2008/11/12/building-a-universal-remote-with-an-arduino/
*
* JVC and Panasonic protocol added by Kristian Lauszus (Thanks to zenwheel and other people at the original blog post)
* LG added by Darryl Smith (based on the JVC protocol)
* Whynter A/C ARC-110WD added by Francesco Meschia
* Coolix A/C / heatpump added by (send) bakrus & (decode) crankyoldgit
* Denon: sendDenon, decodeDenon added by Massimiliano Pinto
(from https://github.com/z3t0/Arduino-IRremote/blob/master/ir_Denon.cpp)
* Kelvinator A/C and Sherwood added by crankyoldgit
* Mitsubishi (TV) sending added by crankyoldgit
* Pronto code sending added by crankyoldgit
* Mitsubishi & Toshiba A/C added by crankyoldgit
* (derived from https://github.com/r45635/HVAC-IR-Control)
* DISH decode by marcosamarinho
* Gree Heatpump sending added by Ville Skyttä (scop)
* (derived from https://github.com/ToniA/arduino-heatpumpir/blob/master/GreeHeatpumpIR.cpp)
* Updated by markszabo (https://github.com/crankyoldgit/IRremoteESP8266) for sending IR code on ESP8266
* Updated by Sebastien Warin (http://sebastien.warin.fr) for receiving IR code on ESP8266
*
* Updated by sillyfrog for Daikin, adopted from
* (https://github.com/mharizanov/Daikin-AC-remote-control-over-the-Internet/)
* Fujitsu A/C code added by jonnygraham
* Trotec AC code by stufisher
* Carrier & Haier AC code by crankyoldgit
* Vestel AC code by Erdem U. Altınyurt
* Teco AC code by Fabien Valthier (hcoohb)
* Mitsubishi 112 AC Code by kuchel77
* Kelon AC code by Davide Depau (Depau)
*
* GPL license, all text above must be included in any redistribution
****************************************************/
#ifndef IRREMOTEESP8266_H_
#define IRREMOTEESP8266_H_
#define __STDC_LIMIT_MACROS
#include <stdint.h>
#ifdef UNIT_TEST
#include <iostream>
#include <string>
#endif // UNIT_TEST
// Library Version Information
// Major version number (X.x.x)
#define _IRREMOTEESP8266_VERSION_MAJOR 2
// Minor version number (x.X.x)
#define _IRREMOTEESP8266_VERSION_MINOR 8
// Patch version number (x.x.X)
#define _IRREMOTEESP8266_VERSION_PATCH 2
// Macro to convert version info into an integer
#define _IRREMOTEESP8266_VERSION_VAL(major, minor, patch) \
((major << 16) | (minor << 8) | (patch))
// Macro to convert literal into a string
#define MKSTR_HELPER(x) #x
#define MKSTR(x) MKSTR_HELPER(x)
// Integer version
#define _IRREMOTEESP8266_VERSION _IRREMOTEESP8266_VERSION_VAL(\
_IRREMOTEESP8266_VERSION_MAJOR, \
_IRREMOTEESP8266_VERSION_MINOR, \
_IRREMOTEESP8266_VERSION_PATCH)
// String version
#define _IRREMOTEESP8266_VERSION_STR MKSTR(_IRREMOTEESP8266_VERSION_MAJOR) "." \
MKSTR(_IRREMOTEESP8266_VERSION_MINOR) "." \
MKSTR(_IRREMOTEESP8266_VERSION_PATCH)
// String version (DEPRECATED)
#define _IRREMOTEESP8266_VERSION_ _IRREMOTEESP8266_VERSION_STR
// Set the language & locale for the library. See the `locale` dir for options.
#ifndef _IR_LOCALE_
#define _IR_LOCALE_ en-AU
#endif // _IR_LOCALE_
// Do we enable all the protocols by default (true), or disable them (false)?
// This allows users of the library to disable or enable all protocols at
// compile-time with `-D_IR_ENABLE_DEFAULT_=true` or
// `-D_IR_ENABLE_DEFAULT_=false` compiler flags respectively.
// Everything is included by default.
// e.g. If you only want to enable use of he NEC protocol to save program space,
// you would use something like:
// `-D_IR_ENABLE_DEFAULT_=false -DDECODE_NEC=true -DSEND_NEC=true`
//
// or alter your 'platform.ini' file accordingly:
// ```
// build_flags = -D_IR_ENABLE_DEFAULT_=false
// -DDECODE_NEC=true
// -DSEND_NEC=true
// ```
// If you want to enable support for every protocol *except* _decoding_ the
// Kelvinator protocol, you would use:
// `-DDECODE_KELVINATOR=false`
#ifndef _IR_ENABLE_DEFAULT_
#define _IR_ENABLE_DEFAULT_ true // Unless set externally, the default is on.
#endif // _IR_ENABLE_DEFAULT_
// Supported IR protocols
// Each protocol you include costs memory and, during decode, costs time
// Disable (set to false) all the protocols you do not need/want!
// The Air Conditioner protocols are the most expensive memory-wise.
//
// Semi-unique code for unknown messages
#ifndef DECODE_HASH
#define DECODE_HASH _IR_ENABLE_DEFAULT_
#endif // DECODE_HASH
#ifndef SEND_RAW
#define SEND_RAW _IR_ENABLE_DEFAULT_
#endif // SEND_RAW
#ifndef DECODE_NEC
#define DECODE_NEC _IR_ENABLE_DEFAULT_
#endif // DECODE_NEC
#ifndef SEND_NEC
#define SEND_NEC _IR_ENABLE_DEFAULT_
#endif // SEND_NEC
#ifndef DECODE_SHERWOOD
#define DECODE_SHERWOOD false // Not applicable. Actually is DECODE_NEC
#endif // DECODE_SHERWOOD
#ifndef SEND_SHERWOOD
#define SEND_SHERWOOD _IR_ENABLE_DEFAULT_
#endif // SEND_SHERWOOD
#ifndef DECODE_RC5
#define DECODE_RC5 _IR_ENABLE_DEFAULT_
#endif // DECODE_RC5
#ifndef SEND_RC5
#define SEND_RC5 _IR_ENABLE_DEFAULT_
#endif // SEND_RC5
#ifndef DECODE_RC6
#define DECODE_RC6 _IR_ENABLE_DEFAULT_
#endif // DECODE_RC6
#ifndef SEND_RC6
#define SEND_RC6 _IR_ENABLE_DEFAULT_
#endif // SEND_RC6
#ifndef DECODE_RCMM
#define DECODE_RCMM _IR_ENABLE_DEFAULT_
#endif // DECODE_RCMM
#ifndef SEND_RCMM
#define SEND_RCMM _IR_ENABLE_DEFAULT_
#endif // SEND_RCMM
#ifndef DECODE_SONY
#define DECODE_SONY _IR_ENABLE_DEFAULT_
#endif // DECODE_SONY
#ifndef SEND_SONY
#define SEND_SONY _IR_ENABLE_DEFAULT_
#endif // SEND_SONY
#ifndef DECODE_PANASONIC
#define DECODE_PANASONIC _IR_ENABLE_DEFAULT_
#endif // DECODE_PANASONIC
#ifndef SEND_PANASONIC
#define SEND_PANASONIC _IR_ENABLE_DEFAULT_
#endif // SEND_PANASONIC
#ifndef DECODE_JVC
#define DECODE_JVC _IR_ENABLE_DEFAULT_
#endif // DECODE_JVC
#ifndef SEND_JVC
#define SEND_JVC _IR_ENABLE_DEFAULT_
#endif // SEND_JVC
#ifndef DECODE_SAMSUNG
#define DECODE_SAMSUNG _IR_ENABLE_DEFAULT_
#endif // DECODE_SAMSUNG
#ifndef SEND_SAMSUNG
#define SEND_SAMSUNG _IR_ENABLE_DEFAULT_
#endif // SEND_SAMSUNG
#ifndef DECODE_SAMSUNG36
#define DECODE_SAMSUNG36 _IR_ENABLE_DEFAULT_
#endif // DECODE_SAMSUNG36
#ifndef SEND_SAMSUNG36
#define SEND_SAMSUNG36 _IR_ENABLE_DEFAULT_
#endif // SEND_SAMSUNG36
#ifndef DECODE_SAMSUNG_AC
#define DECODE_SAMSUNG_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_SAMSUNG_AC
#ifndef SEND_SAMSUNG_AC
#define SEND_SAMSUNG_AC _IR_ENABLE_DEFAULT_
#endif // SEND_SAMSUNG_AC
#ifndef DECODE_WHYNTER
#define DECODE_WHYNTER _IR_ENABLE_DEFAULT_
#endif // DECODE_WHYNTER
#ifndef SEND_WHYNTER
#define SEND_WHYNTER _IR_ENABLE_DEFAULT_
#endif // SEND_WHYNTER
#ifndef DECODE_AIWA_RC_T501
#define DECODE_AIWA_RC_T501 _IR_ENABLE_DEFAULT_
#endif // DECODE_AIWA_RC_T501
#ifndef SEND_AIWA_RC_T501
#define SEND_AIWA_RC_T501 _IR_ENABLE_DEFAULT_
#endif // SEND_AIWA_RC_T501
#ifndef DECODE_LG
#define DECODE_LG _IR_ENABLE_DEFAULT_
#endif // DECODE_LG
#ifndef SEND_LG
#define SEND_LG _IR_ENABLE_DEFAULT_
#endif // SEND_LG
#ifndef DECODE_SANYO
#define DECODE_SANYO _IR_ENABLE_DEFAULT_
#endif // DECODE_SANYO
#ifndef SEND_SANYO
#define SEND_SANYO _IR_ENABLE_DEFAULT_
#endif // SEND_SANYO
#ifndef DECODE_SANYO_AC
#define DECODE_SANYO_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_SANYO_AC
#ifndef SEND_SANYO_AC
#define SEND_SANYO_AC _IR_ENABLE_DEFAULT_
#endif // SEND_SANYO_AC
#ifndef DECODE_SANYO_AC88
#define DECODE_SANYO_AC88 _IR_ENABLE_DEFAULT_
#endif // DECODE_SANYO_AC88
#ifndef SEND_SANYO_AC88
#define SEND_SANYO_AC88 _IR_ENABLE_DEFAULT_
#endif // SEND_SANYO_AC88
#ifndef DECODE_SANYO_AC152
#define DECODE_SANYO_AC152 _IR_ENABLE_DEFAULT_
#endif // DECODE_SANYO_AC152
#ifndef SEND_SANYO_AC152
#define SEND_SANYO_AC152 _IR_ENABLE_DEFAULT_
#endif // SEND_SANYO_AC152
#ifndef DECODE_MITSUBISHI
#define DECODE_MITSUBISHI _IR_ENABLE_DEFAULT_
#endif // DECODE_MITSUBISHI
#ifndef SEND_MITSUBISHI
#define SEND_MITSUBISHI _IR_ENABLE_DEFAULT_
#endif // SEND_MITSUBISHI
#ifndef DECODE_MITSUBISHI2
#define DECODE_MITSUBISHI2 _IR_ENABLE_DEFAULT_
#endif // DECODE_MITSUBISHI2
#ifndef SEND_MITSUBISHI2
#define SEND_MITSUBISHI2 _IR_ENABLE_DEFAULT_
#endif // SEND_MITSUBISHI2
#ifndef DECODE_DISH
#define DECODE_DISH _IR_ENABLE_DEFAULT_
#endif // DECODE_DISH
#ifndef SEND_DISH
#define SEND_DISH _IR_ENABLE_DEFAULT_
#endif // SEND_DISH
#ifndef DECODE_SHARP
#define DECODE_SHARP _IR_ENABLE_DEFAULT_
#endif // DECODE_SHARP
#ifndef SEND_SHARP
#define SEND_SHARP _IR_ENABLE_DEFAULT_
#endif // SEND_SHARP
#ifndef DECODE_SHARP_AC
#define DECODE_SHARP_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_SHARP_AC
#ifndef SEND_SHARP_AC
#define SEND_SHARP_AC _IR_ENABLE_DEFAULT_
#endif // SEND_SHARP_AC
#ifndef DECODE_DENON
#define DECODE_DENON _IR_ENABLE_DEFAULT_
#endif // DECODE_DENON
#ifndef SEND_DENON
#define SEND_DENON _IR_ENABLE_DEFAULT_
#endif // SEND_DENON
#ifndef DECODE_KELVINATOR
#define DECODE_KELVINATOR _IR_ENABLE_DEFAULT_
#endif // DECODE_KELVINATOR
#ifndef SEND_KELVINATOR
#define SEND_KELVINATOR _IR_ENABLE_DEFAULT_
#endif // SEND_KELVINATOR
#ifndef DECODE_MITSUBISHI_AC
#define DECODE_MITSUBISHI_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_MITSUBISHI_AC
#ifndef SEND_MITSUBISHI_AC
#define SEND_MITSUBISHI_AC _IR_ENABLE_DEFAULT_
#endif // SEND_MITSUBISHI_AC
#ifndef DECODE_MITSUBISHI136
#define DECODE_MITSUBISHI136 _IR_ENABLE_DEFAULT_
#endif // DECODE_MITSUBISHI136
#ifndef SEND_MITSUBISHI136
#define SEND_MITSUBISHI136 _IR_ENABLE_DEFAULT_
#endif // SEND_MITSUBISHI136
#ifndef DECODE_MITSUBISHI112
#define DECODE_MITSUBISHI112 _IR_ENABLE_DEFAULT_
#endif // DECODE_MITSUBISHI112
#ifndef SEND_MITSUBISHI112
#define SEND_MITSUBISHI112 _IR_ENABLE_DEFAULT_
#endif // SEND_MITSUBISHI112
#ifndef DECODE_FUJITSU_AC
#define DECODE_FUJITSU_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_FUJITSU_AC
#ifndef SEND_FUJITSU_AC
#define SEND_FUJITSU_AC _IR_ENABLE_DEFAULT_
#endif // SEND_FUJITSU_AC
#ifndef DECODE_INAX
#define DECODE_INAX _IR_ENABLE_DEFAULT_
#endif // DECODE_INAX
#ifndef SEND_INAX
#define SEND_INAX _IR_ENABLE_DEFAULT_
#endif // SEND_INAX
#ifndef DECODE_DAIKIN
#define DECODE_DAIKIN _IR_ENABLE_DEFAULT_
#endif // DECODE_DAIKIN
#ifndef SEND_DAIKIN
#define SEND_DAIKIN _IR_ENABLE_DEFAULT_
#endif // SEND_DAIKIN
#ifndef DECODE_COOLIX
#define DECODE_COOLIX _IR_ENABLE_DEFAULT_
#endif // DECODE_COOLIX
#ifndef SEND_COOLIX
#define SEND_COOLIX _IR_ENABLE_DEFAULT_
#endif // SEND_COOLIX
#ifndef DECODE_COOLIX48
#define DECODE_COOLIX48 _IR_ENABLE_DEFAULT_
#endif // DECODE_COOLIX48
#ifndef SEND_COOLIX48
#define SEND_COOLIX48 _IR_ENABLE_DEFAULT_
#endif // SEND_COOLIX48
#ifndef DECODE_GLOBALCACHE
#define DECODE_GLOBALCACHE false // Not applicable.
#endif // DECODE_GLOBALCACHE
#ifndef SEND_GLOBALCACHE
#define SEND_GLOBALCACHE _IR_ENABLE_DEFAULT_
#endif // SEND_GLOBALCACHE
#ifndef DECODE_GOODWEATHER
#define DECODE_GOODWEATHER _IR_ENABLE_DEFAULT_
#endif // DECODE_GOODWEATHER
#ifndef SEND_GOODWEATHER
#define SEND_GOODWEATHER _IR_ENABLE_DEFAULT_
#endif // SEND_GOODWEATHER
#ifndef DECODE_GREE
#define DECODE_GREE _IR_ENABLE_DEFAULT_
#endif // DECODE_GREE
#ifndef SEND_GREE
#define SEND_GREE _IR_ENABLE_DEFAULT_
#endif // SEND_GREE
#ifndef DECODE_PRONTO
#define DECODE_PRONTO false // Not applicable.
#endif // DECODE_PRONTO
#ifndef SEND_PRONTO
#define SEND_PRONTO _IR_ENABLE_DEFAULT_
#endif // SEND_PRONTO
#ifndef DECODE_ARGO
#define DECODE_ARGO _IR_ENABLE_DEFAULT_
#endif // DECODE_ARGO
#ifndef SEND_ARGO
#define SEND_ARGO _IR_ENABLE_DEFAULT_
#endif // SEND_ARGO
#ifndef DECODE_TROTEC
#define DECODE_TROTEC _IR_ENABLE_DEFAULT_
#endif // DECODE_TROTEC
#ifndef SEND_TROTEC
#define SEND_TROTEC _IR_ENABLE_DEFAULT_
#endif // SEND_TROTEC
#ifndef DECODE_TROTEC_3550
#define DECODE_TROTEC_3550 _IR_ENABLE_DEFAULT_
#endif // DECODE_TROTEC_3550
#ifndef SEND_TROTEC_3550
#define SEND_TROTEC_3550 _IR_ENABLE_DEFAULT_
#endif // SEND_TROTEC_3550
#ifndef DECODE_NIKAI
#define DECODE_NIKAI _IR_ENABLE_DEFAULT_
#endif // DECODE_NIKAI
#ifndef SEND_NIKAI
#define SEND_NIKAI _IR_ENABLE_DEFAULT_
#endif // SEND_NIKAI
#ifndef DECODE_TOSHIBA_AC
#define DECODE_TOSHIBA_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_TOSHIBA_AC
#ifndef SEND_TOSHIBA_AC
#define SEND_TOSHIBA_AC _IR_ENABLE_DEFAULT_
#endif // SEND_TOSHIBA_AC
#ifndef DECODE_MAGIQUEST
#define DECODE_MAGIQUEST _IR_ENABLE_DEFAULT_
#endif // DECODE_MAGIQUEST
#ifndef SEND_MAGIQUEST
#define SEND_MAGIQUEST _IR_ENABLE_DEFAULT_
#endif // SEND_MAGIQUEST
#ifndef DECODE_MIDEA
#define DECODE_MIDEA _IR_ENABLE_DEFAULT_
#endif // DECODE_MIDEA
#ifndef SEND_MIDEA
#define SEND_MIDEA _IR_ENABLE_DEFAULT_
#endif // SEND_MIDEA
#ifndef DECODE_MIDEA24
#define DECODE_MIDEA24 _IR_ENABLE_DEFAULT_
#endif // DECODE_MIDEA24
#ifndef SEND_MIDEA24
#define SEND_MIDEA24 _IR_ENABLE_DEFAULT_
#endif // SEND_MIDEA24
#ifndef DECODE_LASERTAG
#define DECODE_LASERTAG _IR_ENABLE_DEFAULT_
#endif // DECODE_LASERTAG
#ifndef SEND_LASERTAG
#define SEND_LASERTAG _IR_ENABLE_DEFAULT_
#endif // SEND_LASERTAG
#ifndef DECODE_CARRIER_AC
#define DECODE_CARRIER_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_CARRIER_AC
#ifndef SEND_CARRIER_AC
#define SEND_CARRIER_AC _IR_ENABLE_DEFAULT_
#endif // SEND_CARRIER_AC
#ifndef DECODE_CARRIER_AC40
#define DECODE_CARRIER_AC40 _IR_ENABLE_DEFAULT_
#endif // DECODE_CARRIER_AC40
#ifndef SEND_CARRIER_AC40
#define SEND_CARRIER_AC40 _IR_ENABLE_DEFAULT_
#endif // SEND_CARRIER_AC40
#ifndef DECODE_CARRIER_AC64
#define DECODE_CARRIER_AC64 _IR_ENABLE_DEFAULT_
#endif // DECODE_CARRIER_AC64
#ifndef SEND_CARRIER_AC64
#define SEND_CARRIER_AC64 _IR_ENABLE_DEFAULT_
#endif // SEND_CARRIER_AC64
#ifndef DECODE_CARRIER_AC128
#define DECODE_CARRIER_AC128 _IR_ENABLE_DEFAULT_
#endif // DECODE_CARRIER_AC128
#ifndef SEND_CARRIER_AC128
#define SEND_CARRIER_AC128 _IR_ENABLE_DEFAULT_
#endif // SEND_CARRIER_AC128
#ifndef DECODE_HAIER_AC
#define DECODE_HAIER_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_HAIER_AC
#ifndef SEND_HAIER_AC
#define SEND_HAIER_AC _IR_ENABLE_DEFAULT_
#endif // SEND_HAIER_AC
#ifndef DECODE_HITACHI_AC
#define DECODE_HITACHI_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_HITACHI_AC
#ifndef SEND_HITACHI_AC
#define SEND_HITACHI_AC _IR_ENABLE_DEFAULT_
#endif // SEND_HITACHI_AC
#ifndef DECODE_HITACHI_AC1
#define DECODE_HITACHI_AC1 _IR_ENABLE_DEFAULT_
#endif // DECODE_HITACHI_AC1
#ifndef SEND_HITACHI_AC1
#define SEND_HITACHI_AC1 _IR_ENABLE_DEFAULT_
#endif // SEND_HITACHI_AC1
#ifndef DECODE_HITACHI_AC2
#define DECODE_HITACHI_AC2 _IR_ENABLE_DEFAULT_
#endif // DECODE_HITACHI_AC2
#ifndef SEND_HITACHI_AC2
#define SEND_HITACHI_AC2 _IR_ENABLE_DEFAULT_
#endif // SEND_HITACHI_AC2
#ifndef DECODE_HITACHI_AC3
#define DECODE_HITACHI_AC3 _IR_ENABLE_DEFAULT_
#endif // DECODE_HITACHI_AC3
#ifndef SEND_HITACHI_AC3
#define SEND_HITACHI_AC3 _IR_ENABLE_DEFAULT_
#endif // SEND_HITACHI_AC3
#ifndef DECODE_HITACHI_AC264
#define DECODE_HITACHI_AC264 _IR_ENABLE_DEFAULT_
#endif // DECODE_HITACHI_AC264
#ifndef SEND_HITACHI_AC264
#define SEND_HITACHI_AC264 _IR_ENABLE_DEFAULT_
#endif // SEND_HITACHI_AC264
#ifndef DECODE_HITACHI_AC296
#define DECODE_HITACHI_AC296 _IR_ENABLE_DEFAULT_
#endif // DECODE_HITACHI_AC296
#ifndef SEND_HITACHI_AC296
#define SEND_HITACHI_AC296 _IR_ENABLE_DEFAULT_
#endif // SEND_HITACHI_AC296
#ifndef DECODE_HITACHI_AC344
#define DECODE_HITACHI_AC344 _IR_ENABLE_DEFAULT_
#endif // DECODE_HITACHI_AC344
#ifndef SEND_HITACHI_AC344
#define SEND_HITACHI_AC344 _IR_ENABLE_DEFAULT_
#endif // SEND_HITACHI_AC344
#ifndef DECODE_HITACHI_AC424
#define DECODE_HITACHI_AC424 _IR_ENABLE_DEFAULT_
#endif // DECODE_HITACHI_AC424
#ifndef SEND_HITACHI_AC424
#define SEND_HITACHI_AC424 _IR_ENABLE_DEFAULT_
#endif // SEND_HITACHI_AC424
#ifndef DECODE_GICABLE
#define DECODE_GICABLE _IR_ENABLE_DEFAULT_
#endif // DECODE_GICABLE
#ifndef SEND_GICABLE
#define SEND_GICABLE _IR_ENABLE_DEFAULT_
#endif // SEND_GICABLE
#ifndef DECODE_HAIER_AC_YRW02
#define DECODE_HAIER_AC_YRW02 _IR_ENABLE_DEFAULT_
#endif // DECODE_HAIER_AC_YRW02
#ifndef SEND_HAIER_AC_YRW02
#define SEND_HAIER_AC_YRW02 _IR_ENABLE_DEFAULT_
#endif // SEND_HAIER_AC_YRW02
#ifndef DECODE_WHIRLPOOL_AC
#define DECODE_WHIRLPOOL_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_WHIRLPOOL_AC
#ifndef SEND_WHIRLPOOL_AC
#define SEND_WHIRLPOOL_AC _IR_ENABLE_DEFAULT_
#endif // SEND_WHIRLPOOL_AC
#ifndef DECODE_LUTRON
#define DECODE_LUTRON _IR_ENABLE_DEFAULT_
#endif // DECODE_LUTRON
#ifndef SEND_LUTRON
#define SEND_LUTRON _IR_ENABLE_DEFAULT_
#endif // SEND_LUTRON
#ifndef DECODE_ELECTRA_AC
#define DECODE_ELECTRA_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_ELECTRA_AC
#ifndef SEND_ELECTRA_AC
#define SEND_ELECTRA_AC _IR_ENABLE_DEFAULT_
#endif // SEND_ELECTRA_AC
#ifndef DECODE_PANASONIC_AC
#define DECODE_PANASONIC_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_PANASONIC_AC
#ifndef SEND_PANASONIC_AC
#define SEND_PANASONIC_AC _IR_ENABLE_DEFAULT_
#endif // SEND_PANASONIC_AC
#ifndef DECODE_PANASONIC_AC32
#define DECODE_PANASONIC_AC32 _IR_ENABLE_DEFAULT_
#endif // DECODE_PANASONIC_AC32
#ifndef SEND_PANASONIC_AC32
#define SEND_PANASONIC_AC32 _IR_ENABLE_DEFAULT_
#endif // SEND_PANASONIC_AC32
#ifndef DECODE_MWM
#define DECODE_MWM _IR_ENABLE_DEFAULT_
#endif // DECODE_MWM
#ifndef SEND_MWM
#define SEND_MWM _IR_ENABLE_DEFAULT_
#endif // SEND_MWM
#ifndef DECODE_PIONEER
#define DECODE_PIONEER _IR_ENABLE_DEFAULT_
#endif // DECODE_PIONEER
#ifndef SEND_PIONEER
#define SEND_PIONEER _IR_ENABLE_DEFAULT_
#endif // SEND_PIONEER
#ifndef DECODE_DAIKIN2
#define DECODE_DAIKIN2 _IR_ENABLE_DEFAULT_
#endif // DECODE_DAIKIN2
#ifndef SEND_DAIKIN2
#define SEND_DAIKIN2 _IR_ENABLE_DEFAULT_
#endif // SEND_DAIKIN2
#ifndef DECODE_VESTEL_AC
#define DECODE_VESTEL_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_VESTEL_AC
#ifndef SEND_VESTEL_AC
#define SEND_VESTEL_AC _IR_ENABLE_DEFAULT_
#endif // SEND_VESTEL_AC
#ifndef DECODE_TECO
#define DECODE_TECO _IR_ENABLE_DEFAULT_
#endif // DECODE_TECO
#ifndef SEND_TECO
#define SEND_TECO _IR_ENABLE_DEFAULT_
#endif // SEND_TECO
#ifndef DECODE_TCL96AC
#define DECODE_TCL96AC _IR_ENABLE_DEFAULT_
#endif // DECODE_TCL96AC
#ifndef SEND_TCL96AC
#define SEND_TCL96AC _IR_ENABLE_DEFAULT_
#endif // SEND_TCL96AC
#ifndef DECODE_TCL112AC
#define DECODE_TCL112AC _IR_ENABLE_DEFAULT_
#endif // DECODE_TCL112AC
#ifndef SEND_TCL112AC
#define SEND_TCL112AC _IR_ENABLE_DEFAULT_
#endif // SEND_TCL112AC
#ifndef DECODE_LEGOPF
#define DECODE_LEGOPF _IR_ENABLE_DEFAULT_
#endif // DECODE_LEGOPF
#ifndef SEND_LEGOPF
#define SEND_LEGOPF _IR_ENABLE_DEFAULT_
#endif // SEND_LEGOPF
#ifndef DECODE_MITSUBISHIHEAVY
#define DECODE_MITSUBISHIHEAVY _IR_ENABLE_DEFAULT_
#endif // DECODE_MITSUBISHIHEAVY
#ifndef SEND_MITSUBISHIHEAVY
#define SEND_MITSUBISHIHEAVY _IR_ENABLE_DEFAULT_
#endif // SEND_MITSUBISHIHEAVY
#ifndef DECODE_DAIKIN216
#define DECODE_DAIKIN216 _IR_ENABLE_DEFAULT_
#endif // DECODE_DAIKIN216
#ifndef SEND_DAIKIN216
#define SEND_DAIKIN216 _IR_ENABLE_DEFAULT_
#endif // SEND_DAIKIN216
#ifndef DECODE_DAIKIN160
#define DECODE_DAIKIN160 _IR_ENABLE_DEFAULT_
#endif // DECODE_DAIKIN160
#ifndef SEND_DAIKIN160
#define SEND_DAIKIN160 _IR_ENABLE_DEFAULT_
#endif // SEND_DAIKIN160
#ifndef DECODE_NEOCLIMA
#define DECODE_NEOCLIMA _IR_ENABLE_DEFAULT_
#endif // DECODE_NEOCLIMA
#ifndef SEND_NEOCLIMA
#define SEND_NEOCLIMA _IR_ENABLE_DEFAULT_
#endif // SEND_NEOCLIMA
#ifndef DECODE_DAIKIN176
#define DECODE_DAIKIN176 _IR_ENABLE_DEFAULT_
#endif // DECODE_DAIKIN176
#ifndef SEND_DAIKIN176
#define SEND_DAIKIN176 _IR_ENABLE_DEFAULT_
#endif // SEND_DAIKIN176
#ifndef DECODE_DAIKIN128
#define DECODE_DAIKIN128 _IR_ENABLE_DEFAULT_
#endif // DECODE_DAIKIN128
#ifndef SEND_DAIKIN128
#define SEND_DAIKIN128 _IR_ENABLE_DEFAULT_
#endif // SEND_DAIKIN128
#ifndef DECODE_AMCOR
#define DECODE_AMCOR _IR_ENABLE_DEFAULT_
#endif // DECODE_AMCOR
#ifndef SEND_AMCOR
#define SEND_AMCOR _IR_ENABLE_DEFAULT_
#endif // SEND_AMCOR
#ifndef DECODE_DAIKIN152
#define DECODE_DAIKIN152 _IR_ENABLE_DEFAULT_
#endif // DECODE_DAIKIN152
#ifndef SEND_DAIKIN152
#define SEND_DAIKIN152 _IR_ENABLE_DEFAULT_
#endif // SEND_DAIKIN152
#ifndef DECODE_EPSON
#define DECODE_EPSON _IR_ENABLE_DEFAULT_
#endif // DECODE_EPSON
#ifndef SEND_EPSON
#define SEND_EPSON _IR_ENABLE_DEFAULT_
#endif // SEND_EPSON
#ifndef DECODE_SYMPHONY
#define DECODE_SYMPHONY _IR_ENABLE_DEFAULT_
#endif // DECODE_SYMPHONY
#ifndef SEND_SYMPHONY
#define SEND_SYMPHONY _IR_ENABLE_DEFAULT_
#endif // SEND_SYMPHONY
#ifndef DECODE_DAIKIN64
#define DECODE_DAIKIN64 _IR_ENABLE_DEFAULT_
#endif // DECODE_DAIKIN64
#ifndef SEND_DAIKIN64
#define SEND_DAIKIN64 _IR_ENABLE_DEFAULT_
#endif // SEND_DAIKIN64
#ifndef DECODE_AIRWELL
#define DECODE_AIRWELL _IR_ENABLE_DEFAULT_
#endif // DECODE_AIRWELL
#ifndef SEND_AIRWELL
#define SEND_AIRWELL _IR_ENABLE_DEFAULT_
#endif // SEND_AIRWELL
#ifndef DECODE_DELONGHI_AC
#define DECODE_DELONGHI_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_DELONGHI_AC
#ifndef SEND_DELONGHI_AC
#define SEND_DELONGHI_AC _IR_ENABLE_DEFAULT_
#endif // SEND_DELONGHI_AC
#ifndef DECODE_DOSHISHA
#define DECODE_DOSHISHA _IR_ENABLE_DEFAULT_
#endif // DECODE_DOSHISHA
#ifndef SEND_DOSHISHA
#define SEND_DOSHISHA _IR_ENABLE_DEFAULT_
#endif // SEND_DOSHISHA
#ifndef DECODE_MULTIBRACKETS
#define DECODE_MULTIBRACKETS _IR_ENABLE_DEFAULT_
#endif // DECODE_MULTIBRACKETS
#ifndef SEND_MULTIBRACKETS
#define SEND_MULTIBRACKETS _IR_ENABLE_DEFAULT_
#endif // SEND_MULTIBRACKETS
#ifndef DECODE_TECHNIBEL_AC
#define DECODE_TECHNIBEL_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_TECHNIBEL_AC
#ifndef SEND_TECHNIBEL_AC
#define SEND_TECHNIBEL_AC _IR_ENABLE_DEFAULT_
#endif // SEND_TECHNIBEL_AC
#ifndef DECODE_CORONA_AC
#define DECODE_CORONA_AC _IR_ENABLE_DEFAULT_
#endif // DECODE_CORONA_AC
#ifndef SEND_CORONA_AC
#define SEND_CORONA_AC _IR_ENABLE_DEFAULT_
#endif // SEND_CORONA_AC
#ifndef DECODE_ZEPEAL
#define DECODE_ZEPEAL _IR_ENABLE_DEFAULT_
#endif // DECODE_ZEPEAL
#ifndef SEND_ZEPEAL
#define SEND_ZEPEAL _IR_ENABLE_DEFAULT_
#endif // SEND_ZEPEAL
#ifndef DECODE_VOLTAS
#define DECODE_VOLTAS _IR_ENABLE_DEFAULT_
#endif // DECODE_VOLTAS
#ifndef SEND_VOLTAS
#define SEND_VOLTAS _IR_ENABLE_DEFAULT_
#endif // SEND_VOLTAS
#ifndef DECODE_METZ
#define DECODE_METZ _IR_ENABLE_DEFAULT_
#endif // DECODE_METZ
#ifndef SEND_METZ
#define SEND_METZ _IR_ENABLE_DEFAULT_
#endif // SEND_METZ
#ifndef DECODE_TRANSCOLD
#define DECODE_TRANSCOLD _IR_ENABLE_DEFAULT_
#endif // DECODE_TRANSCOLD
#ifndef SEND_TRANSCOLD
#define SEND_TRANSCOLD _IR_ENABLE_DEFAULT_
#endif // SEND_TRANSCOLD
#ifndef DECODE_MIRAGE
#define DECODE_MIRAGE _IR_ENABLE_DEFAULT_
#endif // DECODE_MIRAGE
#ifndef SEND_MIRAGE
#define SEND_MIRAGE _IR_ENABLE_DEFAULT_
#endif // SEND_MIRAGE
#ifndef DECODE_ELITESCREENS
#define DECODE_ELITESCREENS _IR_ENABLE_DEFAULT_
#endif // DECODE_ELITESCREENS
#ifndef SEND_ELITESCREENS
#define SEND_ELITESCREENS _IR_ENABLE_DEFAULT_
#endif // SEND_ELITESCREENS
#ifndef DECODE_MILESTAG2
#define DECODE_MILESTAG2 _IR_ENABLE_DEFAULT_
#endif // DECODE_MILESTAG2
#ifndef SEND_MILESTAG2
#define SEND_MILESTAG2 _IR_ENABLE_DEFAULT_
#endif // SEND_MILESTAG2
#ifndef DECODE_ECOCLIM
#define DECODE_ECOCLIM _IR_ENABLE_DEFAULT_
#endif // DECODE_ECOCLIM
#ifndef SEND_ECOCLIM
#define SEND_ECOCLIM _IR_ENABLE_DEFAULT_
#endif // SEND_ECOCLIM
#ifndef DECODE_XMP
#define DECODE_XMP _IR_ENABLE_DEFAULT_
#endif // DECODE_XMP
#ifndef SEND_XMP
#define SEND_XMP _IR_ENABLE_DEFAULT_
#endif // SEND_XMP
#ifndef DECODE_TRUMA
#define DECODE_TRUMA _IR_ENABLE_DEFAULT_
#endif // DECODE_TRUMA
#ifndef SEND_TRUMA
#define SEND_TRUMA _IR_ENABLE_DEFAULT_
#endif // SEND_TRUMA
#ifndef DECODE_HAIER_AC176
#define DECODE_HAIER_AC176 _IR_ENABLE_DEFAULT_
#endif // DECODE_HAIER_AC176
#ifndef SEND_HAIER_AC176
#define SEND_HAIER_AC176 _IR_ENABLE_DEFAULT_
#endif // SEND_HAIER_AC176
#ifndef DECODE_TEKNOPOINT
#define DECODE_TEKNOPOINT _IR_ENABLE_DEFAULT_
#endif // DECODE_TEKNOPOINT
#ifndef SEND_TEKNOPOINT
#define SEND_TEKNOPOINT _IR_ENABLE_DEFAULT_
#endif // SEND_TEKNOPOINT
#ifndef DECODE_KELON
#define DECODE_KELON _IR_ENABLE_DEFAULT_
#endif // DECODE_KELON
#ifndef SEND_KELON
#define SEND_KELON _IR_ENABLE_DEFAULT_
#endif // SEND_KELON
#ifndef DECODE_BOSE
#define DECODE_BOSE _IR_ENABLE_DEFAULT_
#endif // DECODE_BOSE
#ifndef SEND_BOSE
#define SEND_BOSE _IR_ENABLE_DEFAULT_
#endif // SEND_BOSE
#ifndef DECODE_ARRIS
#define DECODE_ARRIS _IR_ENABLE_DEFAULT_
#endif // DECODE_ARRIS
#ifndef SEND_ARRIS
#define SEND_ARRIS _IR_ENABLE_DEFAULT_
#endif // SEND_ARRIS
#ifndef DECODE_RHOSS
#define DECODE_RHOSS _IR_ENABLE_DEFAULT_
#endif // DECODE_RHOSS
#ifndef SEND_RHOSS
#define SEND_RHOSS _IR_ENABLE_DEFAULT_
#endif // SEND_RHOSS
#ifndef DECODE_AIRTON
#define DECODE_AIRTON _IR_ENABLE_DEFAULT_
#endif // DECODE_AIRTON
#ifndef SEND_AIRTON
#define SEND_AIRTON _IR_ENABLE_DEFAULT_
#endif // SEND_AIRTON
#ifndef DECODE_KELON168
#define DECODE_KELON168 _IR_ENABLE_DEFAULT_
#endif // DECODE_KELON168
#ifndef SEND_KELON168
#define SEND_KELON168 _IR_ENABLE_DEFAULT_
#endif // SEND_KELON168
#ifndef DECODE_DAIKIN200
#define DECODE_DAIKIN200 _IR_ENABLE_DEFAULT_
#endif // DECODE_DAIKIN200
#ifndef SEND_DAIKIN200
#define SEND_DAIKIN200 _IR_ENABLE_DEFAULT_
#endif // SEND_DAIKIN200
#ifndef DECODE_HAIER_AC160
#define DECODE_HAIER_AC160 _IR_ENABLE_DEFAULT_
#endif // DECODE_HAIER_AC160
#ifndef SEND_HAIER_AC160
#define SEND_HAIER_AC160 _IR_ENABLE_DEFAULT_
#endif // SEND_HAIER_AC160
#ifndef DECODE_TOTO
#define DECODE_TOTO _IR_ENABLE_DEFAULT_
#endif // DECODE_TOTO
#ifndef SEND_TOTO
#define SEND_TOTO _IR_ENABLE_DEFAULT_
#endif // SEND_TOTO
#ifndef DECODE_CLIMABUTLER
#define DECODE_CLIMABUTLER _IR_ENABLE_DEFAULT_
#endif // DECODE_CLIMABUTLER
#ifndef SEND_CLIMABUTLER
#define SEND_CLIMABUTLER _IR_ENABLE_DEFAULT_
#endif // SEND_CLIMABUTLER
#ifndef DECODE_BOSCH144
#define DECODE_BOSCH144 _IR_ENABLE_DEFAULT_
#endif // DECODE_BOSCH144
#ifndef SEND_BOSCH144
#define SEND_BOSCH144 _IR_ENABLE_DEFAULT_
#endif // SEND_BOSCH144
#ifndef DECODE_DAIKIN312
#define DECODE_DAIKIN312 _IR_ENABLE_DEFAULT_
#endif // DECODE_DAIKIN312
#ifndef SEND_DAIKIN312
#define SEND_DAIKIN312 _IR_ENABLE_DEFAULT_
#endif // SEND_DAIKIN312
#if (DECODE_ARGO || DECODE_DAIKIN || DECODE_FUJITSU_AC || DECODE_GREE || \
DECODE_KELVINATOR || DECODE_MITSUBISHI_AC || DECODE_TOSHIBA_AC || \
DECODE_TROTEC || DECODE_HAIER_AC || DECODE_HITACHI_AC || \
DECODE_HITACHI_AC1 || DECODE_HITACHI_AC2 || DECODE_HAIER_AC_YRW02 || \
DECODE_WHIRLPOOL_AC || DECODE_SAMSUNG_AC || DECODE_ELECTRA_AC || \
DECODE_PANASONIC_AC || DECODE_MWM || DECODE_DAIKIN2 || \
DECODE_VESTEL_AC || DECODE_TCL112AC || DECODE_MITSUBISHIHEAVY || \
DECODE_DAIKIN216 || DECODE_SHARP_AC || DECODE_DAIKIN160 || \
DECODE_NEOCLIMA || DECODE_DAIKIN176 || DECODE_DAIKIN128 || \
DECODE_AMCOR || DECODE_DAIKIN152 || DECODE_MITSUBISHI136 || \
DECODE_MITSUBISHI112 || DECODE_HITACHI_AC424 || DECODE_HITACHI_AC3 || \
DECODE_HITACHI_AC344 || DECODE_CORONA_AC || DECODE_SANYO_AC || \
DECODE_VOLTAS || DECODE_MIRAGE || DECODE_HAIER_AC176 || \
DECODE_TEKNOPOINT || DECODE_KELON || DECODE_TROTEC_3550 || \
DECODE_SANYO_AC88 || DECODE_RHOSS || DECODE_HITACHI_AC264 || \
DECODE_KELON168 || DECODE_HITACHI_AC296 || DECODE_CARRIER_AC128 || \
DECODE_DAIKIN200 || DECODE_HAIER_AC160 || DECODE_TCL96AC || \
DECODE_BOSCH144 || DECODE_SANYO_AC152 || DECODE_DAIKIN312 || \
false)
// Add any DECODE to the above if it uses result->state (see kStateSizeMax)
// you might also want to add the protocol to hasACState function
#define DECODE_AC true // We need some common infrastructure for decoding A/Cs.
#else
#define DECODE_AC false // We don't need that infrastructure.
#endif
// Use millisecond 'delay()' calls where we can to avoid tripping the WDT.
// Note: If you plan to send IR messages in the callbacks of the AsyncWebserver
// library, you need to set ALLOW_DELAY_CALLS to false.
// Ref: https://github.com/crankyoldgit/IRremoteESP8266/issues/430
#ifndef ALLOW_DELAY_CALLS
#define ALLOW_DELAY_CALLS true
#endif // ALLOW_DELAY_CALLS
// Enable a run-time settable high-pass filter on captured data **before**
// trying any protocol decoding.
// i.e. Try to remove/merge any really short pulses detected in the raw data.
// Note: Even when this option is enabled, it is _off_ by default, and requires
// a user who knows what they are doing to enable it.
// The option to disable this feature is here if your project is _really_
// tight on resources. i.e. Saves a small handful of bytes and cpu time.
// WARNING: If you use this feature at runtime, you can no longer trust the
// **raw** data captured. It will now have been slightly **cooked**!
// DANGER: If you set the `noise_floor` value too high, it **WILL** break
// decoding of some protocols. You have been warned. Here Be Dragons!
//
// See: `irrecv::decode()` in IRrecv.cpp for more info.
#ifndef ENABLE_NOISE_FILTER_OPTION
#define ENABLE_NOISE_FILTER_OPTION true
#endif // ENABLE_NOISE_FILTER_OPTION
/// Enumerator for defining and numbering of supported IR protocol.
/// @note Always add to the end of the list and should never remove entries
/// or change order. Projects may save the type number for later usage
/// so numbering should always stay the same.
enum decode_type_t {
UNKNOWN = -1,
UNUSED = 0,
RC5,
RC6,
NEC,
SONY,
PANASONIC, // (5)
JVC,
SAMSUNG,
WHYNTER,
AIWA_RC_T501,
LG, // (10)
SANYO,
MITSUBISHI,
DISH,
SHARP,
COOLIX, // (15)
DAIKIN,