Jesse Vincent
fbfede3566
astyle
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
3 years ago
Jesse Vincent
54fbb04eb6
Give FocusSerial the ability to build a command string across multiple
...
cycles by maintaining buffer state
3 years ago
Jesse Vincent
46d9f06d77
astyle
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
3 years ago
Jesse Vincent
5c7ffe6383
explanatory comment
3 years ago
Jesse Vincent
62f668fd25
Don't block waiting for input blindly. Be more efficient about how we check for a newline to end processing. Replace a magic value with what it really means.
...
TODO: We may want to block for a few fractions of a to make sure that we don't read half a command
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
3 years ago
Jesse Vincent
c9943057f4
Abort processing if there was no command
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
3 years ago
Jesse Vincent
34e630438b
Use a constant to make code clearer
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
3 years ago
Jesse Vincent
aa34c150d2
Since the array is clean, we don't need to write a \0 after the command
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
3 years ago
Jesse Vincent
80e7408e03
reinit our command as we start parsing
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
3 years ago
Jesse Vincent
1d3c7b3399
Replace 'drain' with a slightly more correct implementation
3 years ago
Jesse Vincent
5ca95d0deb
Add an explanatory comment
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
3 years ago
Michael Richters
3ddd12ea04
Adapt FocusSerial plugin to KeyEvent handlers
...
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Gergely Nagy
fc1296395e
New hook: onNameQuery()
...
This implements a new `FocusSerial` command: `plugins`. The `plugins` command
will reply back with a list of plugins enabled in the firmware. The list is not
exhaustive, only plugins that opt-in to this mechanism will be listed. It is
opt-in, because for a lot of plugins, having them listed isn't useful in a
practical sense.
The goal with this feature is to allow Chrysalis to detect plugins that would
affect what keys it offers, or which additional settings it displays, and do so
in a consistent way. This is why IdleLEDs has an `onNameQuery` handler too, even
though it can be detected otherwise: for consistency.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
4 years ago
Jesse Vincent
81ae19a7ec
Cleanups for typos and broken links across the documentation
4 years ago
Jesse Vincent
efeea31589
More library tweaking to comply with arduino requirements
4 years ago
Jesse Vincent
33626a569f
Move most plugin READMEs back into the plugins
4 years ago
Jesse Vincent
46c567c01a
Add generated 'author' lines to plugins based on Copyright statements.
4 years ago
Jesse Vincent
1a5193c443
Add maintainer, sentence, and url to all the plugin libraries
4 years ago
Jesse Vincent
ad07aeee97
Migrate Kaleidoscope-FocusSerial to the plugins directory
4 years ago