Jesse Vincent
8f2eccaeba
Merge pull request #279 from keyboardio/f/hid/pluggable-with-default
...
Pluggable HID facade
7 years ago
Jesse Vincent
fe71904441
Merge pull request #282 from gedankenexperimenter/bug/find-device-port-macos
...
Better serial port detection for macOS
7 years ago
Michael Richters
65ec30ae32
Added copyright & attribution comment
7 years ago
Jesse Vincent
9189e6f536
Merge pull request #281 from gedankenexperimenter/fmt/indentation
...
Consistent indentation of kaleidoscope-builder & co
7 years ago
Michael Richters
c945bf0662
Use the new find-device-port-macos script to find the correct port
7 years ago
Michael Richters
b207ec4659
perltidy find-device-port-linux-udev
7 years ago
Michael Richters
69946554dd
Consistent indentation of find-device-port-linux-udev helper script
7 years ago
Michael Richters
be4fdd5432
Indented kaleidoscope-builder consistently
7 years ago
Michael Richters
32ce579de1
Indented kaleidoscope-builder.conf as shell script
...
* also added emacs shell-script-mode comment
7 years ago
Jesse Vincent
d0706b7bfc
Merge pull request #278 from keyboardio/f/hid/begin
...
Kaleidoscope::setup: Use the HID facade
7 years ago
Gergely Nagy
1f195636e7
Include the HIDAdaptor library in the examples
...
At some point, we want to remove the default include, so start including the
extra library in the examples.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
6867ff3ba8
Make the HID facade implementation external
...
Instead of implementing the HID adaptors within Kaleidoscope, provide an API
only (by marking the symbols `extern`). For the sake of backwards compatibility,
pull in `Kaleidoscope-HIDAdaptor-KeyboardioHID`, a new shim library implementing
the status quo.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
a5eb6320c8
Kaleidoscope::setup: Use the HID facade
...
Instead of using `Keyboard.begin` directly, use
`kaleidoscope::hid::initializeKeyboard`. While there, also initialize
`ConsumerControl` and `SystemControl` the same way.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Jesse Vincent
2257402a43
Merge branch 'noseglasses-ng_pr_demangled_disassembly'
7 years ago
Jesse Vincent
0dd1f49841
"disassembly" -> "disassemble" to better match the phrasing of other targets.
...
(also, fixed the usage)
7 years ago
noseglasses
0fc79af6b2
Added name demangling in disassemblies
7 years ago
Gergely Nagy
2cba7e409c
Merge pull request #271 from noseglasses/ng_pr_missing_curly_braces
...
Added missing closing curly braces to Key macros
7 years ago
Florian Fleissner
ce122bb282
Added missing closring curly braces to Key macros
7 years ago
Jesse Vincent
75770b8cf6
If you do a verbose build, don't throw away the build artifacts
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
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
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
c060c5ef7e
Rearranged and commented Layer.on() and Layer.off()
...
The boolean wasOn was unnecessary, and there was no need to call
bitSet() (or bitClear(), in the case of Layer.off()) if the test
passed. Mostly, I just added a few explanatory comments.
(Aslo reversed the sense of the on/off test in Layer.on() and .off())
@algernon likes it better this way, and I agree.
7 years ago
Jesse Vincent
0870a2d560
Merge pull request #252 from keyboardio/h/mousekeys/separate-report-abstraction
...
hid: Wrap Mouse.releaseAll() and Mouse.sendReport()
7 years ago
Jesse Vincent
593d0884f5
Merge pull request #255 from gedankenexperimenter/qukeys
...
A method for finding the active layer for a given key(switch)
7 years ago
Jesse Vincent
e07cf70d4d
Merge pull request #256 from SjB/HorizontalMouseScrolling
...
Horizontal Mouse Scrolling Support in Kaleidoscope.
7 years ago
Michael Richters
904bdd37bf
Removed spurious line deletion
7 years ago
SjB
df3d791165
Horizontal Mouse Scrolling Support in Kaleidoscope.
7 years ago
Michael Richters
1f7d9ed2e8
Wrong capitalization of `DefaultLayer` variable
7 years ago
Michael Richters
34cea2623d
This iterator should count down, not up
7 years ago
Michael Richters
154f0f3267
Moved definition of MAX_LAYERS next to LayerState declaration
...
Also redefined it in terms of the size of LayerState
7 years ago
Michael Richters
e822c6afad
In case defaultLayer isn't zero, stop counting down there
...
`updateActiveLayers()` makes it impossible to turn off the default
layer, so there's no point searching past it for the highest layer,
and `defaultLayer` can be set to numbers higher than zero.
7 years ago
Michael Richters
f90891dc1c
Added function to return the active layer of a given key
...
New function `lookupActiveLayer()` returns the number of the layer
that a given key (`row`, `col`) is currently mapped from.
7 years ago
Michael Richters
00df66d30a
Make updateHighestLayer() use layer_count if it's set
...
Now that `layer_count` is (potentially) available, we can start
looking for active layers at the top _defined_ layer instead of the
top _possible_ layer. This ought to be more efficient, especially for
sketches that don't have lots of layers defined.
Also introduced the `MAX_LAYERS` constant (#define).
7 years ago
Gergely Nagy
bd35b9fe4e
Merge pull request #253 from gedankenexperimenter/doc/keymaps
...
Fixed reference to "CREATE_KEYMAP" (should have been "KEYMAPS")
7 years ago
Michael Richters
918f25b623
Fixed reference to "CREATE_KEYMAP" (should have been "KEYMAPS")
...
The macro for defining the keymap (and also storing its size (in
layers)) isn't named `CREATE_KEYMAP()`; it's `KEYMAPS()`.
7 years ago
Gergely Nagy
2bc62cb8b9
hid: Wrap Mouse.releaseAll() and Mouse.sendReport()
...
Built on top of keyboardio/KeyboardioHID#14 , required for
keyboardio/Kaleidoscope-MouseKeys#10 .
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Michael Richters
75a16eeb96
Brief description of Layer.on() & Layer.off()
7 years ago
Jesse Vincent
0a41083881
Merge pull request #244 from gedankenexperimenter/bug/layer-next
...
Prevent reading past the end of the keymaps[] array
7 years ago
Jesse Vincent
8e03280e36
Merge pull request #251 from keyboardio/h/consumercontrol/repeat-fix
...
Fix ConsumerControl repeating
7 years ago