1
0

93 Commits

Author SHA1 Message Date
Gergely Nagy
0095044dd4
Fix turning LEDs off on suspend
When suspending, we want to set all LEDs off & sync first, and only then pause
LED operations. When the code was originally written, `LEDControl.syncLeds()`
synced LEDs even when `LEDControl.paused` was set - it no longer does so, so we
need to pause after we synced.

This addresses , at least partially.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2019-01-20 17:17:11 +01:00
Gergely Nagy
0b00f27cba
Stop using deprecated (and now removed) APIs
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2019-01-20 08:39:58 +01:00
Tycho Andersen
852566ee1c add a blurb about binding the PROG key to things
Signed-off-by: Tycho Andersen <tycho@tycho.ws>
2018-12-09 11:04:58 -07:00
Tycho Andersen
d9363b3781 wrap the *super* long lines
I hate to be that guy, but I was reading these on github's page when
deciding whether or not to order a keyboard.io, and the extra long lines
here are not automatically wrapped when browsing the repo on github.

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
2018-12-09 10:57:35 -07:00
Gergely Nagy
f4855c9279
Update the URL of LED-Stalker, to point to the new docs
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2018-12-05 07:59:10 +01:00
Anders Hustvedt
ab57ab8468 Fix anyKeyMacro for new hid API
Signed-off-by: Anders Hustvedt <anders@computerfire.net>
2018-10-29 06:31:08 -06:00
Gergely Nagy
5343f4306e
Drop the LED-Off.h include, the header is deprecated
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2018-10-22 00:27:34 +02:00
Gergely Nagy
718aba9a43 Support an EEPROM-based keymap overlay & Focus
This adds the necessary code to support having five additional layers in EEPROM.
Also adds support for Focus, so these layers can be changed, and the default
layer set, too.

We also enable the EEPROM commands, which can be helpful in debugging and
backing up one's EEPROM contents.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2018-10-09 00:57:05 +02:00
Wes Malone
7bb88bd5a5 Fix trailing whitespace and stray tab
Signed-off-by: Wes Malone <wes@mitsi.com>
2018-09-21 17:09:24 -05:00
Jesse Vincent
87b7497f25 astyle 2018-07-19 22:39:54 -07:00
Jesse Vincent
8526858c38 Make it easier to switch to COLEMAK/DVORAK/CUSTOM layouts 2018-07-19 22:12:36 -07:00
Jesse Vincent
a5b86bea5a Add a Caps lock key on Fn-Let by default.
Enough customers want a caps lock that we ought to give them -something-
in the default firmware
2018-07-19 21:19:47 -07:00
Tré Ammatuna
eeccc5b331
Fix typo in comments 2018-07-10 16:54:19 -07:00
Gergely Nagy
d9c5d7022f Don't use an enum for MagicCombo.
Since we use a dedicated function for the single magic combo we have, using an
enum in this case is just more confusing than if we didn't. For this reason,
drop the use of enum, and just specify the array directly.

Thanks @obra for the suggestion!

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2018-07-02 23:44:32 +02:00
Gergely Nagy
1e6c2c702c Documentation fixups
Fixed up some of the USBQuirks and MagicCombo-related documentation, based on
feedback from @obra.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2018-07-01 23:06:11 +02:00
Gergely Nagy
583d5429cd Updated to use the new MagicCombo APIs
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2018-06-09 13:13:46 +02:00
Gergely Nagy
33bcc999b9 Add a way to toggle between Boot and NKRO mode manually
Make use of the MagicCombo and USB-Quirks plugins in order to allow one to
toggle between Boot and NKRO mode of the keyboard, simply by pressing Left Fn +
Shift + Esc.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2018-06-08 13:14:56 +02:00
Gergely Nagy
bcd694f404 Drop the use of HostPowerManagement.enableWakeup()
It is not necessary anymore, as BootKeyboard supports wakeup itself now. As
such, also updated the comments regarding the plugin in
KALEIDOSCOPE_INIT_PLUGINS.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2018-06-04 07:59:49 +02:00
Gergely Nagy
033b8706ec Updated to use the new plugin APIs
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2018-05-08 12:45:31 +02:00
Gergely Nagy
deef154018
Merge pull request from gedankenexperimenter/f/keymaps
Updated definition of keymaps[] to use KEYMAPS() macro
2018-04-05 10:09:37 +02:00
Gergely Nagy
3b91ecfbf8 Make the Quote transparent on the NUMPAD layer.
Because the key two rows below `NumLock` is `Key_Quote` on the base layer too,
and is not a numpad-specific key either, make it transparent, so it does not get
highlighted erroneously.

Thanks to @ImmaculatePotato and Eddie Jinks for reporting the issue, and
proposing the fix.

Fixes .

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2018-03-10 14:37:51 +01:00
Dan Bernier
b6c8974487 Use CRGB type for AlphaSquare color, so ints are in common order 2018-03-08 21:21:25 -05:00
Gergely Nagy
72035c14d0 Add support for host power management (suspend & wakeup)
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2017-12-16 20:31:53 +01:00
Michael Richters
6f7a9d09f5 Updated definition of keymaps[] to use KEYMAPS() macro
This change will enable the `layer_count` variable for preventing
reading past the end of the `keymaps[]` array.
2017-11-30 12:59:58 -06:00
Jesse Vincent
cd2f939adc Now that 'Consumer_Mute' is no longer blocked by 'is_internal', we can
switch back to using it, to get a working mute toggle on linux, windows
and osx.
2017-11-13 18:14:08 -08:00
Jesse Vincent
8e1c9d0111 astyle fixes 2017-11-13 18:06:11 -08:00
Jesse Vincent
7d141644a6 Swap the order of the Numpad and Fn layers, so it's possible to get to
arrow keys if you have the numpad on.
2017-11-13 17:56:23 -08:00
Jesse Vincent
a457f37155 Switch from the NumLock library to the NumPad library.
This new plugin lets us use a more standard layer lock to get into the
numpad mode and doesn't depend on the system numlock feature quite as
much
2017-11-12 23:23:47 -08:00
Jennifer Leigh
1cdd90fbdc Added a couple "to be documented" items
I added a couple items to the list of things that should be documented. 

I also realize I have no idea what the ANY key does, but I'm intrigued. I don't understand from these code comments, and don't have time to puzzle it out now.

Otherwise, though, this is so much better than the file I've been poking at for weeks! It's clear and clean and much more welcoming. Thanks for all the behind the scenes work that made this possible, and thank you Jesse for the work writing up comments!
2017-10-04 11:29:48 -07:00
Csilla Nagyné Martinák
f92e9943d7 Make the sketch use backslash less
This lass is not fond of backslash, so she made the sketch use backslash
less, so much so that it is now backslash-less.

Signed-off-by: Csilla Nagyné Martinák <csilla@csillger.hu>
2017-10-04 17:19:20 +02:00
Craig Disselkoen
a988fac811 Fix misleading indentation in all three layers' keymaps
plus add astyle directives to make astyle not complain about it
2017-10-03 22:52:31 -07:00
Jesse Vincent
0063537e04 update to shifttolayer and instead of the old keymap_n_momentary macros;
update doc
2017-10-03 22:10:38 -07:00
Csilla Nagyné Martinák
22f5337c79 Remove the NULL from the end of Kaleidoscope.use
For a while now, `Kaleidoscope.use` does not require a NULL sentinel at
the end. This drops the sentinel instead of adding documentation that
would explain why that NULL is there.

Signed-off-by: Csilla Nagyné Martinák <csilla@csillger.hu>
2017-10-03 10:27:29 +02:00
Jesse Vincent
1f614f52c2 clean up indentation of keymaps 2017-10-02 23:58:41 -07:00
Jesse Vincent
b759e003af remove the special NUMPAD_ID definition; move the keymap definitions into the variable declaration.
This has the advantage of having one fewer construct to explain
2017-10-02 23:46:03 -07:00
Jesse Vincent
e99467aa48 Doc updates as suggested by @cdisselkoen++ 2017-10-02 23:26:33 -07:00
Jesse Vincent
028b9c6dda Slightly simplify the default keymaps, removing some duplication 2017-10-02 23:01:26 -07:00
Jesse Vincent
d466c1fa63 Close a comment 2017-10-02 22:44:49 -07:00
Jesse Vincent
cb27773980 astyle 2017-10-02 22:43:48 -07:00
Jesse Vincent
c56b4da44b First pass at comments on the rest of the default sketch 2017-10-02 22:40:54 -07:00
Jesse Vincent
a10ddeaa50 comment much of the default sketch 2017-10-02 22:04:13 -07:00
Jesse Vincent
0e670bc7ab We're not actually exposing BootKeyboard yet. 2017-10-02 20:56:56 -07:00
Jesse Vincent
99c25e40da Move some LED color definitions to after the macro defnitions.
It seems a little clearer.
2017-10-02 20:01:34 -07:00
Jesse Vincent
556256aabe move the hopefully-going-away numpad keymap id definition closer to
where one can intuit why it's that number
2017-10-02 20:00:59 -07:00
Jesse Vincent
d84b937086 reorganize imports for a little more clarity 2017-10-02 20:00:25 -07:00
Jesse Vincent
d64810c9b2 whitespace 2017-10-02 19:56:01 -07:00
Jesse Vincent
ac0a2c5ab8 Refactor macro code to remove hand-coded numbers and make code a bit more readable 2017-10-02 19:34:57 -07:00
Jesse Vincent
2f0beee0db astyle 2017-10-02 19:00:25 -07:00
Jesse Vincent
3498d43e73 Remove a couple of C preprocessor macros involved in the definition of
keyboard macros, in the hope of making the code clearer
2017-10-02 18:59:44 -07:00
Jesse Vincent
55062b5382 DEBUG_SERIAL is unused. kill it 2017-10-02 18:58:54 -07:00