[FL-2853] Reorganise Universal A/C library (#1792)

* Reorganise A/C universal remote library file
* Refactor infrared brute force code
* Update UniversalRemotes.md

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Georgii Surkov
2022-09-27 20:11:28 +03:00
committed by GitHub
parent e6e1e7fe15
commit 12a6290e91
5 changed files with 112 additions and 72 deletions

View File

@@ -33,6 +33,8 @@ Finally, record the `Off` signal:
The resulting remote file should now contain 6 signals. Any of them can be omitted, but that will mean that this functionality will not be used.
Test the file against the actual device. Every signal must do what it's supposed to.
If everything checks out, add these signals to the [A/C universal remote file](/assets/resources/infrared/assets/ac.ir).
Keep the signals of the same type grouped together (e.g. an `Off` signal must follow a previous `Off` one).
If everything checks out, append these signals **to the end** of the [A/C universal remote file](/assets/resources/infrared/assets/ac.ir).
The order of signals is not important, but they must be preceded by a following comment: `# Model: <Your model name>` in order to keep the library organised.
When done, open a pull request containing the changed file.