Ben Gemperline
3d19d9544e
Removed variable that was set but not used in SpaceCadet.cpp:158
7 years ago
Ben Gemperline
51f0acbb94
Ran astyle on code
7 years ago
Ben Gemperline
4ca7664442
Updated variable naming to fit style guide and fixed compilation error in example file
7 years ago
Ben Gemperline
7808eba436
Added .DS_Store to .gitignore
7 years ago
Ben Gemperline
6806fd9720
Updated readme file
7 years ago
Gergely Nagy
a5883b4b2e
isActive() should take pressed & sticky states into consideration
...
If a one-shot key is held, or is sticky, then we do not care about the timeout.
The `isActive()` method was adjusted to do so.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Jesse Vincent
dcb7141c42
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
dde21a0c32
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
117f96cbdf
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
2f50776689
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
e3b6fa04e7
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
1ef65294ed
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
74bd0d88a2
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
4b3aa0127a
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
da79e1a91b
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
9ee2330b1a
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
5b72c95227
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
ad15c4798d
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
cbf651f8bd
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
eb4bd2ad76
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
387cc95109
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
77a3f9a611
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
c761bf70a9
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
8c9acb2be5
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
74b79d60f6
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
b0701de771
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
50073dc27b
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
1f97689ff1
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
329c133638
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
3b249dc1b3
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
bb5c89c76d
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
b9af46b1ef
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
75663c4896
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
186a5c0182
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
a4d6a814f2
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
50c92bddf7
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
500ffc25fc
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
c8c5cc0b02
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
475fc4c2ae
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
8431bed1ed
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
6749727510
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
32a85ec403
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
4cb2043729
Move Kaleidoscope builder back into Kaleidoscope
7 years ago
Ben Gemperline
fff8179587
Updated documentation and removed debug statements and unnecessary header files.
7 years ago
Ben Gemperline
f3969ba614
Updated example file with new keymap
7 years ago
Ben Gemperline
c3348eb096
Initial commit after changes to support multiple keys
7 years ago
Gergely Nagy
3fdbc72f81
Limit layers we work on to max_layers_
...
The plugin should not try to set the colors of a layer higher than
`max_layers_`, because the colormap for that would be coming from an EEPROM area
that is not ours, and result in weird colors at best.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
26b07ba67a
Revert "Add a way to optimize for a one-shot-only setup."
...
This reverts commit b3e1f73546
, because it broke
more things than it fixed.
7 years ago
Gergely Nagy
e9c03b5fd8
Fix isActive(key)
...
The `OneShot.isActive(key)` method was returning true even if a key timed out,
when `OneShot.isActive()` already returned false. It now takes the timeout into
consideration too.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
b3e1f73546
Add a way to optimize for a one-shot-only setup.
...
OneShot has a convenient way to tell us if any OneShot keys are active:
`OneShot.isActive()`. Thus, if we are using oneshots only, we can skip scanning
the whole keymap if no one-shots are active, saving us a whole lot of time per
cycle we would be spending needlessly.
The optimization is off by default, and must be turned on by the user's sketch.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago