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
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
Jesse Vincent
6bdef3675b
replace a magic seeming constant with a macro
2017-10-02 18:48:39 -07:00
Jesse Vincent
8bfd32d5b9
decompose a conditional to make it easier to read and refactor
2017-10-02 18:46:46 -07:00
Jesse Vincent
91ddf30b55
Kaleidoscope.setup no longer takes an argument
2017-10-02 18:46:17 -07:00
Jesse Vincent
f881a1b192
change the name of a compiler macro to make it clear that it's an id
2017-10-02 18:44:23 -07:00
Jesse Vincent
b0e1c32113
rename our keymaps to be more consistent.
...
I feel weird about putting the name before the word 'keymap', but this
seems less confusing than explaining why KEYMAP_QWERTY and
KEYMAP_STACKED are different kidns of entitites
2017-10-02 18:43:21 -07:00
Gergely Nagy
2a13e4a9c9
Updated to use the new NumLock plugin
...
The NumLock plugin works without a macro now, so we can simplify the factory
firmware by just using `Key_KeypadNumLock`.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
2017-10-01 01:18:59 +02:00
Gergely Nagy
76afe3a280
Updated to use the new LEDMode/LEDControl APIs
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
2017-08-16 10:01:59 +02:00
Jesse Vincent
747d42dc92
astyle
2017-08-13 21:18:10 -07:00
Jesse Vincent
7a4dabc8ee
We had the wrong key definition for what keyboards actually use as the
...
'menu'
2017-08-13 15:17:57 -07:00
Jesse Vincent
d6435ac21c
First pass at adding in the boot greeting plugin to make the LED key
...
glow on boot
2017-08-13 15:17:49 -07:00
Jesse Vincent
6a0888f316
Switch our mute key to Key_Mute in the hope that it works better on OSX
2017-08-07 14:15:34 +09:00
Gergely Nagy
dfcecf1eb2
Turn the Fn keys into Keymap1_Momentary
...
When both `Fn` keys are `KeymapNext_Momentary`, holding both would get us to the
`NUMPAD` layer, which overrides the palm keys and turns them into
`Keymap1_Momentary` keys. Thus, when releasing them, we would receive a release
event for `Keymap1_Momentary`, not for `KeymapNext_Momentary`, and we'd be stuck
on the `Numpad` layer until toggling it off.
To avoid this scenario, change the `KeymapNext_Momentary` keys into
`Keymap1_Momentary`, so we never reach the `NUMPAD` layer via the `Fn` keys.
Fixes keyboardio/Kaleidoscope#151 , with thanks to @chughes87 for the report!
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2017-07-30 09:40:16 +02:00
Jesse Vincent
92b9163a64
astyle
2017-07-25 15:14:23 -07:00
Jesse Vincent
de97e9a2f4
Fix key repeat on Any. Port to new hid facade api
2017-07-25 15:14:07 -07:00
Jesse Vincent
ddc4e15fbf
switch to new CamelCased' toggle functions
2017-07-24 14:43:50 -07:00
Gergely Nagy
90a4a06126
Update to work with an argument-less NumLock.toggle()
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2017-07-02 22:47:11 +02:00
Jesse Vincent
119423cbbd
move the rainbow effects earlier in the effect list
2017-06-19 12:59:55 +08:00
Jesse Vincent
c6a2d4f99a
brighten up the rainbow effects
2017-06-12 09:39:00 +08:00
Jesse Vincent
be5c9498d2
Move the version key to "any" on the numlock layer
2017-06-12 08:35:36 +08:00
Jesse Vincent
221101c6aa
Macro.type needs PSTR() macros around strings.
...
Algernon talked me out of putting the newline in the macro
2017-06-11 19:40:55 +08:00
Jesse Vincent
8cf3f68cf4
That's a stacked keymap
2017-06-10 06:45:14 -07:00
Jesse Vincent
d04098d212
Update the versioning macro to hopefully pull verison info in from the build system
2017-06-09 18:08:34 -07:00
Jesse Vincent
9f987624d5
Call Macros "Macro_blah" rather than "Key_blah"
2017-06-09 18:08:09 -07:00