forked from xoseperez/espurna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ir: clean-up and refactoring of the existing module
- provide a queue for the outgoing messages, don't depend on the MQTT callback implementation details and always postpone the actual transfer. - generate user input parsers using re2c, adds special PlatformIO build handlers - add terminal command to show GPIO info and send a simple payload - rework button<->action presets into value<->terminal command presets and custom ones through the use of `irCmd<VALUE>` settings, where the VALUE is taken from the simple payload (yet, it does not understand repeated codes, but that's something to add later *or* use rpnlib) - add tx message integration for the relay module via `irRelayOn#` and `irRelayOff#` - rework simple payload to include 'repeats' value for the 'IRsend::send()' also adds internal 'series', 'delay' and includes full 64bit 'value' (as uppercase HEX, instead of decimal) - rework raw payload to use 'series' instead of 'repeats', and provide a clear distinction between the usec time and the options of the message by moving the required options to the front and separating them using ':' (just like the simple variant) - make RX and TX pin a runtime setting, make RX and TX support a build flag - small test framework to check whether internal string encode<->decode works Also updates the hexEncode & hexDecode implementations to use 'iterators' instead of just pointer + index.
- Loading branch information
Showing
20 changed files
with
2,461 additions
and
623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
*.ini text eol=lf | ||
*.h text eol=lf | ||
*.cpp text eol=lf | ||
*.re text eol=lf | ||
*.cpp.inc text eol=lf | ||
*.c text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.