James N. V. Cash
c298d22827
Only need keysPerLayer in the updating branch of the conditional
7 years ago
James N. V. Cash
0073be9a74
Fix error in storing keys by layer
7 years ago
James N. V. Cash
480bfbd021
Guard against out-of-bounds layer
7 years ago
James N. V. Cash
e4cf2e4c75
Add documentation about new hook to readme
7 years ago
James N. V. Cash
6dcc6a9277
Teach plugin to print out the contents of a given layer
7 years ago
James N. V. Cash
0f00b4a9a9
Add method to allow upload of keymap for individual layer
7 years ago
Jesse Vincent
c8c5cc0b02
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
ceaded3eb4
Update Makefile to fix OS X build
7 years ago
Gergely Nagy
98b389411b
Use Kaleidoscope.use instead of USE_PLUGINS
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
feda651170
Mark the plugin stable
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
36a0632d6d
astyle to pad operators
8 years ago
Gergely Nagy
8782cea7c1
Focus: When printing the keymap, use the effective layout
...
Instead of printing the keymap from EEPROM, print the effective layout.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
ba6128dddc
Kaleidoscope Style Guide conformance
...
Updated the code to conform to the latest style guide. And added a bit of
documentation too, while there.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
97008a28f0
"make astyle
8 years ago
Jesse Vincent
a0cebeb0ee
Switch to modern build infrastructure
8 years ago
Jesse Vincent
0e0f3037e5
Modernize build and test infra
8 years ago
Jesse Vincent
543c3b09f2
Update example to match new keymap
8 years ago
Gergely Nagy
2f7c38a15d
Focus: Fix the `keymap.transfer` docs
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
e07f00e947
Focus: keymap.map should work with raw keycodes
...
Instead of separating `flags` and `keyCode`, just use the `raw` combination.
Easier for higher level tools to work with.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
1432015235
Focus: Merge keymap.dump and keymap.upload into keymap.map
...
Fixes #2 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
78836fd091
Focus: Less formatting in the dump output
...
Fixes #1 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
cdbbc0cd0a
Instead of full docs, only document the commands
...
Full documentation takes way too much space, and command names are a reasonable
compromise for discoverability.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
379a2d483b
Add a `getKeyOverride` method
...
This method uses the EEPROM only to augment the PROGMEM keymap: if EEPROM is
transparent, then PROGMEM is used. As such, the keymap in EEPROM is only an
overlay in this case.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
0f3dddae98
Make the `updateKey` method public
...
It can be useful for other plugins that want to update the EEPROM
keymap.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
b766ad6c4d
README: Add a "Dependencies" section
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
0c387ce1c3
Focus: Lift out keymap.transfer
...
The keymap.transfer command is only useful if we have both PROGMEM & EEPROM
keymaps, which will rarely be a case, and likely only temporarily, too. As such,
lift that out of the `focusKeymap` function, into its own. This makes the
command optional, and can save us some 140 bytes of program space (even more if
documentation is enabled).
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
035c95a207
No need to consume the trailing \n anymore
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
a747d6c8cf
Use the new Focus helpers
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
5a7601bb30
Update to use the new EEPROM-Settings library
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
4e1a579136
Do not treat 0xffff as NoKey
...
We expect the keymap in EEPROM to be set up by the time we get to use it,
instead of having uninitialized EEPROM there. So remove the special handling of
0xffff.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
e3481be6ed
Fix the `keymap.dump` Focus command
...
The `keymap.dump` command should dump up to `maxLayers` amount of layers,
instead of a hardcoded four.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
18d8a31338
Drop the getPos & setPos commands
...
They are not all that useful, and take up considerable space, for very
little gain.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
33f5d8d9de
Some small code optimizations
...
Lifted out a few things from the main `focusKeymap` method, to make code
size smaller.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
80178956e4
Travis: Remove obsolete workarounds
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
807d18ab31
Nicer dump output
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
45391388db
Move the Focus hook into a separate file
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
00b836d0ac
Code optimalization
...
Lift out the key updating code into a private method.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
73c0f86d37
Add a missing #pragma once
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
03ab5f1a47
Updated to support newest Focus
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
db09b35be3
Initial import
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago