Jesse Vincent
4cb339bd8f
Merge pull request #16 from keyboardio/f/pause
...
Add a way to pause LED modes
7 years ago
Gergely Nagy
b4dd6706df
Merge pull request #8 from jamesnvc/update-on-focus
...
Mark the layout "dirty" on focus hook change, so it updates
7 years ago
Jesse Vincent
fa34983b5b
Merge pull request #254 from gedankenexperimenter/highest-layer
...
Make updateHighestLayer() use layer_count if it's set
7 years ago
Jesse Vincent
7a55a9395f
Merge pull request #205 from cdisselkoen/inject-physical
...
Allow injected events tied to physical keyswitches
7 years ago
James N. V. Cash
31bbd890c4
Mark the layout "dirty" on focus hook change, so it updates
...
Previously, when using the Focus hook to change the LED Colormap, one
would need to trigger a refresh by switching layers or toggling LED themes
7 years ago
Gergely Nagy
e9111f595c
Merge pull request #9 from Dygmalab/master
...
fixed missing newline
7 years ago
matt venn
02a2a6c54a
fixed missing newline
7 years ago
Selene Scriven
b31ca24d52
Merge branch 'master' of https://github.com/ToyKeeper/Kaleidoscope-LED-Wavepool
...
Grabbing updates from github, had an extra version there.
7 years ago
Selene Scriven
25efc7fce4
Merge branch 'algernon-f/led-api-update'
...
Updates this to work with newer upstream code again.
7 years ago
Gergely Nagy
9dc2daddc5
make astyle
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
539aa85d6a
Add a special `WakeupKeyboard`, to be able to wake the host up
...
At least on Linux, for a device to be considered capable of waking the host up,
it must be a boot keyboard. As we do not (yet) support a boot keyboard, we fake
one. An USB node that does nothing else than report itself as a boot keyboard,
and does the minimum amount of work to get recognised as such.
Because of this, Linux - and hopefully the other OSes too - will consider the
whole device capable of waking up the host.
This addresses keyboardio/Kaleidoscope#237 , if all goes well.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
2871b06974
Add a way to pause LED modes
...
Add LEDControl.paused, which we use to pause LED mode updates if true (defaults
to false). This is useful when we want to stop LED modes from updating without
switching to another (like when the host goes to sleep, and we want to turn LEDs
off).
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
1ab0ae3347
make astlye
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
9a32ae9879
Renamed a few private members to follow the style guide
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
24d06c7168
Initial import
...
Fixes keyboardio/Kaleidoscope#217 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Michael Richters
0cb4ac7970
Subtle change to key masking computation
...
This doesn't change behaviour at all; it's just a different way to do the computation,
which I think is much clearer. I also added an explanatory comment.
* It's now all bitwise operations, without arithemetic thrown in.
* It uses the same exact formula for finding bits on both sides of the keyboard.
* It saves 14 bytes in program memory.
7 years ago
Jesse Vincent
1513b888fb
Merge pull request #264 from keyboardio/f/builder-cleanup
...
kaleidoscope-builder cleanup
7 years ago
Gergely Nagy
a2cee84455
kaleidoscope-builder: Remove extraneous whitespace
...
Drop a bunch of empty lines, trailing spaces, and similar things.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
7a423ced8b
kaleidoscope-builder: Pull VID, SKETCH_PID and BOOTLOADER_PID from boards.txt
...
Instead of hardcoding defaults for `VID`, `SKETCH_PID`, and `BOOTLOADER_PID`,
use `arduino-builder -dump-prefs` to pull these out of `boards.txt`.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
4b6ca2fab3
Fix stickied OneShot clearing
...
When clearing a sticky, also cancel the OneShot state, and clear the pressed
bits too.
Thanks to @glasser for experimenting and coming up with the full fix.
Fixes #17 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
62f619a5c4
Cancel stickies too
...
Fixes #2 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
14d916ed3e
Merge pull request #18 from gedankenexperimenter/bug/backtick
...
Backtick is ASCII 0x60, not 0x5F
7 years ago
Michael Richters
631d028c5f
Backtick is ASCII 0x60, not 0x5F
...
fixes #17
7 years ago
Michael Richters
4d186e0228
Use an unsigned integer for the iterator
...
Also made the comment above more clear
7 years ago
Jesse Vincent
eb9164ddaa
refactor device reset code
7 years ago
Jesse Vincent
5d9420c4f5
VERY hacky WIP tool for finding the correct port for a device on linux by VID/PID pair
7 years ago
Jesse Vincent
5b808f1eb8
This may or may not work. Trying to simplify the platform detection logic
7 years ago
Jesse Vincent
040287a203
Now that the config file is elsewhere and simpler, this outdated check can probably go.
7 years ago
Jesse Vincent
693589b1ef
Slightly simplify a conditional.
...
@algernon do you see any gotcha with this change?
7 years ago
Jesse Vincent
110b2795f0
move the verbose stuff out of the config file
7 years ago
Jesse Vincent
3556727657
Move two functions from the kaleidoscope-builder.conf to the builder
7 years ago
Michael Richters
86c2f44dff
Merge pull request #17 from gedankenlab/code-cleanup
...
Correct array initialization
7 years ago
Michael Richters
421556f7cc
Correct array initialization
7 years ago
Michael Richters
40d2e5bc35
Re-wrote README
7 years ago
Michael Richters
9205c67da3
Merge pull request #16 from gedankenlab/code-cleanup
...
Code cleanup
7 years ago
Michael Richters
cd0073f0ae
Prettier formatting of keymap; astyle off for that section
7 years ago
Michael Richters
41437c789a
Spurious comments removed
7 years ago
Michael Richters
e842a7cef5
Removed trailing underscore from public member variable names
7 years ago
Michael Richters
50a074bafc
Make internal functions private
7 years ago
Michael Richters
e5813aba55
Removed unnecessary comments
7 years ago
Michael Richters
f2894fa455
Removed unused & commented init() function
7 years ago
Michael Richters
d33deda114
astyle
7 years ago
Michael Richters
c112cc615d
Flush non-qukeys from the head of the queue
7 years ago
Michael Richters
abea4c281c
Simplify if(keyToggledOn)
7 years ago
Michael Richters
65163be9c7
Store qukey state as a bitfield instead of a struct member ( #15 )
...
* Defined bitfield structure for storing qukey state
* Implement storage of qukey states in bitfield
7 years ago
Gergely Nagy
b0b1283975
make astyle
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Michael Richters
632e876084
Mask keys when they're in the queue; unmask when flushed
7 years ago
Michael Richters
ba67fe2ee6
Fixed addr::unmask()
...
It was calling `maskKey()` instead of `unMaskKey()`
7 years ago
Michael Richters
0e951d8b46
Changed parameter name
...
In `flushKey()`, I changed the ambiguous parameter name `state` to the more descriptive `qukey_state`.
7 years ago
Michael Richters
f2dc52ba0b
Added mask() & unmask() functions
7 years ago