Florian Fleissner
ae93c18728
Fixed style related errors
7 years ago
Florian Fleissner
3119b6b228
Added src/macro_helpers.h that supports application of preprocessor-macros
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
Michael Richters
195d6bc413
Better compliance with coding style guide
...
* s/LayerCount/layer_count/
* s/CREATE_KEYMAP/KEYMAPS/
7 years ago
Jesse Vincent
4bcbab2c09
Merge pull request #247 from gedankenexperimenter/bug/shift-layer-release
...
Only call updateLiveCompositeKeymap() on key press; not release
7 years ago
Jesse Vincent
8c250fe028
Merge pull request #242 from SjB/10bitConsumerCodeSupport
...
Support all 10bit HID Consumer code.
7 years ago
Gergely Nagy
be49df2806
Fix ConsumerControl repeating
...
Instead of sending a press & release for the consumer key when the physical key
is released, send a press each cycle it is held, a report along with the
keyboard report, and clear the consumer report each cycle too.
This will prevent these keys getting stuck, or sending multiple presses in the
same report.
Fixes #176 .
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
462af972ae
Merge pull request #216 from nornagon/patch-1
...
Link to the example firmware sketch from the README
7 years ago
Gergely Nagy
b9a429f9b0
Merge pull request #248 from dignati/fix-sed-command
...
Use a safer sed command to avoid locale issues
7 years ago
Ole Krüger
b729a2e291
Use a safer sed command to avoid locale issues
...
On some locales awk will generate commas instead of dots in the percentage. This will mess up the sed command. Instead of forcing awk to always generate dots we can simply cange the sed command to treat commas as regular text.
7 years ago
Michael Richters
dd1376978e
Another comment update
7 years ago
Michael Richters
3dfb8caa11
Updated comment to match code
...
updateLiveKeymap only called when key is pressed
7 years ago
Michael Richters
f6d627602e
Only call updateLiveCompositeKeymap() on key press; not release
...
If we call updateLiveCompositeKeymap() on key release the keymap gets
updated before the release event occurs, and any ShiftToLayer(N) key
with a different definition on layer N won't work properly. Before its
release event is processed, it gets updated to the new value, and
layer N doesn't get turned off. If we only update the live keymap on
key press events, we don't have this problem.
7 years ago
SjB
9843c57f13
fix: coding style with make astyle
7 years ago