Updated Infrared Control (markdown)

This commit is contained in:
Louis Beaudoin 2021-01-02 22:02:10 +00:00
parent 13f56d1f56
commit 8e72706f79
1 changed files with 1 additions and 1 deletions

View File

@ -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.