IRremoteESP8266
ir_NEC.h
Go to the documentation of this file.
1 // Copyright 2009 Ken Shirriff
2 // Copyright 2017, 2018 David Conran
3 
8 
9 // Supports:
10 // Brand: Yamaha, Model: RAV561 remote
11 // Brand: Yamaha, Model: RXV585B A/V Receiver
12 // Brand: Aloka, Model: SleepyLights LED Lamp
13 // Brand: Toshiba, Model: 42TL838 LCD TV
14 // Brand: Duux, Model: Blizzard Smart 10K / DXMA04 A/C
15 // Brand: Duux, Model: YJ-A081 TR Remote
16 // Brand: Silan Microelectronics, Model: SC6121-001 IC
17 // Brand: BBK, Model: SP550S 5.1 sound system
18 // Brand: Tanix, Model: TX3 mini Android TV Box
19 
20 #ifndef IR_NEC_H_
21 #define IR_NEC_H_
22 
23 #include <stdint.h>
24 #include "IRremoteESP8266.h"
25 
26 // Constants
27 const uint16_t kNecTick = 560;
28 const uint16_t kNecHdrMarkTicks = 16;
30 const uint16_t kNecHdrSpaceTicks = 8;
32 const uint16_t kNecBitMarkTicks = 1;
34 const uint16_t kNecOneSpaceTicks = 3;
36 const uint16_t kNecZeroSpaceTicks = 1;
38 const uint16_t kNecRptSpaceTicks = 4;
40 const uint16_t kNecRptLength = 4;
41 const uint16_t kNecMinCommandLengthTicks = 193;
43 const uint32_t kNecMinGap =
46  kNecBitMark);
47 const uint16_t kNecMinGapTicks =
51 
52 // IR codes and structure for kids ALOKA SleepyLights LED Lamp.
53 // https://aloka-designs.com/
54 // Ref: https://github.com/crankyoldgit/IRremoteESP8266/issues/1004
55 //
56 // May be useful for someone wanting to control the lamp.
57 //
58 // The lamp is toggled On and Off with the same power button.
59 // The colour, when selected, is the brightest and there are 4 levels of
60 // brightness that decrease on each send of the colour. A fifth send of the
61 // colour resets to brightest again.
62 //
63 // Remote buttons defined left to right, top line to bottom line on the remote.
64 const uint32_t kAlokaPower = 0xFF609F;
65 const uint32_t kAlokaLedWhite = 0xFF906F;
66 const uint32_t kAlokaLedGreen = 0xFF9867;
67 const uint32_t kAlokaLedBlue = 0xFFD827;
68 const uint32_t kAlokaLedPinkRed = 0xFF8877;
69 const uint32_t kAlokaLedRed = 0xFFA857;
70 const uint32_t kAlokaLedLightGreen = 0xFFE817;
71 const uint32_t kAlokaLedMidBlue = 0xFF48B7;
72 const uint32_t kAlokaLedPink = 0xFF6897;
73 const uint32_t kAlokaLedOrange = 0xFFB24D;
74 const uint32_t kAlokaLedYellow = 0xFF00FF;
75 const uint32_t kAlokaNightFade = 0xFF50AF;
76 const uint32_t kAlokaNightTimer = 0xFF7887;
77 const uint32_t kAlokaLedRainbow = 0xFF708F;
78 // Didn't have a better description for it...
79 const uint32_t kAlokaLedTreeGrow = 0xFF58A7;
80 #endif // IR_NEC_H_
kAlokaLedWhite
const uint32_t kAlokaLedWhite
Definition: ir_NEC.h:65
kNecBitMarkTicks
const uint16_t kNecBitMarkTicks
Definition: ir_NEC.h:32
kNecHdrSpace
const uint16_t kNecHdrSpace
Definition: ir_NEC.h:31
kNecBitMark
const uint16_t kNecBitMark
Definition: ir_NEC.h:33
kNecMinCommandLength
const uint32_t kNecMinCommandLength
Definition: ir_NEC.h:42
kNecZeroSpaceTicks
const uint16_t kNecZeroSpaceTicks
Definition: ir_NEC.h:36
kAlokaLedBlue
const uint32_t kAlokaLedBlue
Definition: ir_NEC.h:67
kAlokaLedLightGreen
const uint32_t kAlokaLedLightGreen
Definition: ir_NEC.h:70
kNecOneSpace
const uint16_t kNecOneSpace
Definition: ir_NEC.h:35
kAlokaNightTimer
const uint32_t kAlokaNightTimer
Definition: ir_NEC.h:76
kNecMinCommandLengthTicks
const uint16_t kNecMinCommandLengthTicks
Definition: ir_NEC.h:41
kNecZeroSpace
const uint16_t kNecZeroSpace
Definition: ir_NEC.h:37
kNecOneSpaceTicks
const uint16_t kNecOneSpaceTicks
Definition: ir_NEC.h:34
kNecRptSpace
const uint16_t kNecRptSpace
Definition: ir_NEC.h:39
kNecHdrMarkTicks
const uint16_t kNecHdrMarkTicks
Definition: ir_NEC.h:28
kAlokaNightFade
const uint32_t kAlokaNightFade
Definition: ir_NEC.h:75
IRremoteESP8266.h
kNecRptLength
const uint16_t kNecRptLength
Definition: ir_NEC.h:40
kAlokaLedPink
const uint32_t kAlokaLedPink
Definition: ir_NEC.h:72
kNecMinGapTicks
const uint16_t kNecMinGapTicks
Definition: ir_NEC.h:47
kAlokaLedPinkRed
const uint32_t kAlokaLedPinkRed
Definition: ir_NEC.h:68
kNECBits
const uint16_t kNECBits
Definition: IRremoteESP8266.h:1332
kAlokaLedRed
const uint32_t kAlokaLedRed
Definition: ir_NEC.h:69
kAlokaLedTreeGrow
const uint32_t kAlokaLedTreeGrow
Definition: ir_NEC.h:79
kNecHdrMark
const uint16_t kNecHdrMark
Definition: ir_NEC.h:29
kNecRptSpaceTicks
const uint16_t kNecRptSpaceTicks
Definition: ir_NEC.h:38
kAlokaLedOrange
const uint32_t kAlokaLedOrange
Definition: ir_NEC.h:73
kNecMinGap
const uint32_t kNecMinGap
Definition: ir_NEC.h:43
kAlokaPower
const uint32_t kAlokaPower
Definition: ir_NEC.h:64
kAlokaLedMidBlue
const uint32_t kAlokaLedMidBlue
Definition: ir_NEC.h:71
kAlokaLedRainbow
const uint32_t kAlokaLedRainbow
Definition: ir_NEC.h:77
kAlokaLedYellow
const uint32_t kAlokaLedYellow
Definition: ir_NEC.h:74
kNecHdrSpaceTicks
const uint16_t kNecHdrSpaceTicks
Definition: ir_NEC.h:30
kNecTick
const uint16_t kNecTick
Definition: ir_NEC.h:27
kAlokaLedGreen
const uint32_t kAlokaLedGreen
Definition: ir_NEC.h:66