Skip to content

Commit f2c8bc4

Browse files
Add LED Strip support to IR Read button (#2057)
* Add LED Strip option to quick buttons * Add LED quick buttons to ir_read.h
1 parent a83de89 commit f2c8bc4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/modules/ir/ir_read.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ void IrRead::setup() {
9393
begin();
9494
return loop();
9595
}},
96+
{"LED STRIP", [&]() {
97+
quickButtons = quickButtonsLED;
98+
begin();
99+
return loop();
100+
}},
96101
};
97102
options = {
98103
{"Custom Read",

src/modules/ir/ir_read.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,14 @@ class IrRead {
7272
"OK", "SOURCES", "VOL+", "VOL-", "MUTE",
7373
"SETTINGS", "BACK", "EQ", "REC", "PLAY/PAUSE",
7474
"STOP", "NEXT", "PREV", "SHUFFLE", "REPEAT"};
75+
std::vector<String> quickButtonsLED = {
76+
"ON", "OFF", "BRIGHTNESS+", "BRIGHTNESS-",
77+
"RED", "GREEN", "BLUE", "WHITE",
78+
"ORANGE", "PEA_GREEN", "DARK_BLUE",
79+
"DARK_YELLOW", "CYAN", "PURPLE",
80+
"YELLOW", "LIGHT_BLUE", "MAGENTA",
81+
"LIGHT_YELLOW", "SKY_BLUE", "ROSE",
82+
"MODE_FLASH", "MODE_STROBE", "MODE_FADE", "MODE_SMOOTH"
83+
};
7584
std::vector<String> &quickButtons = quickButtonsTV;
7685
};

0 commit comments

Comments
 (0)