Updated Infrared Control (markdown)
This commit is contained in:
parent
13f56d1f56
commit
8e72706f79
|
@ -29,4 +29,4 @@ In this example, `0xFFDE10` is the infrared code in HEX. If you get `0xFFFFFFFF`
|
|||
|
||||
Now, open the file `ir_codes.h` and add your IR code by adding (for example) `#define IRCUSTOM_MACRO1 0xFFDE10`.
|
||||
|
||||
Almost done! Open `wled20_ir.ino` and add your IR code into the `switch` structure in the `decodeIRCustom()` method. You should be able to follow the existing code to program your desired action. For example, you could do `case IRCUSTOM_MACRO1: bri = 255; break;` to set maximum brightness.
|
||||
Almost done! Open `ir.cpp` and add your IR code into the `switch` structure in the `decodeIRCustom()` method. You should be able to follow the existing code to program your desired action. For example, you could do `case IRCUSTOM_MACRO1: bri = 255; break;` to set maximum brightness.
|
Loading…
Reference in New Issue