Jesse Vincent
fbdc8bdf35
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
b9c5fd4c91
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
b5cf8ad734
Merge pull request #11 from keyboardio/f/license-and-copyright-assignment
...
License update, copyright assignment & CONTRIBUTING.md
6 years ago
Gergely Nagy
e16d0dfcc5
Add CONTRIBUTING.md
...
Copied from Kaleidoscope, as it is applicable here too.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
b2ae841d24
Assign my copyright to Keyboard.io
...
While the original plugin was written independently, significant developments
were made while working for Keyboard.io. As such, I feel it is appropriate to
assign copyright to the company.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
459d847002
Relicense under the GPLv3 (only)
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
8459e50815
Merge pull request #10 from keyboardio/f/plugin-v2
...
Updated to use the new plugin APIs
7 years ago
Gergely Nagy
435018eb6a
Updated to use the new plugin APIs
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
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
Gergely Nagy
64dff51199
Merge pull request #7 from jamesnvc/get-key-override-fix
...
If layer is greater than max_layer, always fall back to PROGMEM
7 years ago
Gergely Nagy
877a51a575
Merge pull request #8 from jamesnvc/readme-update-max-layers
...
Explain what max_layers should be set to in README
7 years ago
James N. V. Cash
cc0d69ea2d
Explain what max_layers should be set to in README
7 years ago
James N. V. Cash
5d53d77c6f
If layer is greater than max_layer, always fall back to EEPROM
...
Current behaviour will make higher layers not work & always return Key_NoKey
7 years ago
Gergely Nagy
604e64fb91
Merge pull request #6 from jamesnvc/addressing-issues
...
Fix very bad bug in layerwise implementation
7 years ago
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
Gergely Nagy
b7d27a8997
Merge pull request #5 from jamesnvc/print-layer
...
Make keymap layer hook able to print map as well
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
Gergely Nagy
b62f7494b2
Merge pull request #3 from jamesnvc/receive-by-layer
...
Add method to allow upload of keymap for individual 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