Gergely Nagy
b673b51b2b
Fix a pair of think-os
...
Check `mappedKey` against `Key-1` / `Key_0`, because those are key objects.
`KEY_1` and `KEY_0` are entirely different things, and they only worked by pure
chance.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
ecacf871ad
Update to use new Focus.printColor API
8 years ago
Jesse Vincent
63835fa1bd
Update to use new Focus.printColor API
8 years ago
Jesse Vincent
12a1b09a4f
Update to use new Focus.printColor API
8 years ago
Jesse Vincent
aa274edd43
Revert "add header with rgb struct definition"
...
This reverts commit f2c5e3ae9d
.
Algernon pointed out that we can't depend on the ordering of the struct
at the Kaleidoscope level
8 years ago
Jesse Vincent
338c5c6551
Merge pull request #131 from wez/rgb
...
add header with rgb struct definition
8 years ago
Wez Furlong
f2c5e3ae9d
add header with rgb struct definition
...
refs: https://github.com/keyboardio/Kaleidoscope-Focus/issues/3
8 years ago
Jesse Vincent
12603e09b6
Merge pull request #4 from keyboardio/f/wdt
...
Moved the wdt_disable() call to the hardware plugins
8 years ago
Jesse Vincent
0fae7952b6
Merge pull request #130 from algernon/f/wdt-to-hardware
...
Move the WDT calls to the hardware plugins
8 years ago
Gergely Nagy
da4c057fba
Moved the wdt_disable() call to the hardware plugins
...
See keyboardio/Kaleidoscope#129 for a discussion why.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
3ee483b2cb
Move the WDT calls to the hardware plugins
...
WDT is AVR specific, so it has a much better place in the hardware plugins. Move
it there, and call `KeyboardHardware.setup()` earlier, so it can call
`wdt_disable()` before all the other things it needs.
The delay after WDT disabling moves to the hardware plugin too.
Thanks to @wez and @obra for figuring out what to move where (see
keyboardio/Kaleidoscope#129 ).
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
b5ffa280a3
Merge pull request #129 from wez/master
...
basic support for non-avr, non-usb boards
8 years ago
Wez Furlong
4e5259f424
and this is needed to allow building with the Teensy USB core
8 years ago
Wez Furlong
173a422439
basic support for non-avr, non-usb boards
...
This is the smallest change to make Kaleidoscope compile for
nRF52 BLE boards.
https://github.com/wez/KaleidoscopeKeyboards
has more code and build machinery for my proof of concept for using
Kaleidoscope as the driver for a keyboard using the new nRF52 based
board from Adafruit.
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
55c42928f9
Add a `led.theme` Focus command
...
Allows setting all of the LEDs to custom, distinct colors (as opposed to
`led.setAll`, which sets them all to the same color). This allows one to
upload a theme in one go, without having to set each LED one by one.
Fixes #5 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
347bd3aa59
Add a Solarized palette too
...
Thanks to @erikmh for the suggestion!
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
664df896e0
README: Rearrange the methods a bit
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
957866fb84
README: Drop a left over sample from another plugin
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
b811e1f973
Document the Focus hooks too
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
1379094d39
Add some developer-oriented docs to the README
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
e3e6ec9488
README: Change the status images to SVG
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
3069fbab81
Focus: Do no formatting in the palette dumper
...
Fixes #4 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
84b5e94440
Focus: Less formatting in the dump commands
...
Fixes #1 .
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
a83d61e280
Focus: Fix the command list
...
`eeprom.dump` and `eeprom.upload` has been merged into `eeprom.contents`,
reflect that in the command list, too.
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
cdd6b811f9
Focus: Allow partial eeprom upload
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
fc59d1f64b
Focus: Merge the eeprom.dump and eeprom.upload commands
...
Fixes #2 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
0bfb773619
Focus: Don't format the eeprom.dump output
...
Fixes #1 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
a880eea367
Add a way to hook into the lock/unlock mechanism
...
The callback can't prevent the action, but it can have side effects, such as
lighting up the LEDs, when the keyboard becomes locked (or unlocked).
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
c72c7a5fe9
Drop some debugging stuff. Oops.
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
1feb474a62
EEPROM & Focus support
...
This makes it possible to persist the settings in EEPROM too, and allow setting
them via Focus.
Fixes #2 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
6e49fb4481
Move the configurable settings into a struct
...
This is in preparation for persisting these in EEPROM.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
107d51ce5a
Initial import
...
Fixes #1 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
656c2934f3
Add a Pastel palette
...
Source: http://www.colourlovers.com/palette/1390882/c64
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
8a5b13673a
Focus: Add a "clear" sub-command
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
cd8a87ec47
Restart the cycle early if the palette does not change
...
Fixes #3 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
8b6653d3c8
Fix the example
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
f83ac78605
Add an (optional) default palette
...
Fixes #1 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
406410a735
Focus: add fingerpainter.toggle
...
Toggles the Edit mode.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
249437d6e7
Initial import
...
There are some issues here and there, and this saw minimal testing only. But it
is okay-ish for an initial attempt.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
19b5655770
Add a way to figure out the used & free EEPROM amount
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
26d7af1b96
Fix the `settings.version` Focus command
...
There was a missing `break`, so control flowed through to the CRC case.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
9884e54f9d
The "NOTICE" file caused some user confusion
8 years ago
Jesse Vincent
19c63e6a8b
Merge pull request #122 from algernon/f/focus-layer-hook
...
Add an optional Focus hook
8 years ago
Jesse Vincent
d73b27eea7
Update to new handle_keyswitch_event API naming
8 years ago
Jesse Vincent
37fa269ecb
Update to new handle_keyswitch_event API naming
8 years ago
Jesse Vincent
79f543734f
Use UNKNOWN_KEYSWITCH_LOCATION rather than a magic value
8 years ago