Gergely Nagy
c01e7d864a
Add LEDOff too, so turning Stalker off can be tested too
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
b1c0f1fc1b
Convert the plugin to a LEDMode
...
Fixes #3 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
397c08ec9f
Up the effect length to 1 second
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
91380a81c8
Clear the previous key when a new one is pressed
...
When we light up a new key, clear the previous one (but only if it isn't the
same, to avoid flickering).
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
49720378bd
Fix the right hand clearing
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
29841ec02e
Add a LEDMode based on AlphaSquare.
...
The new singleton objects implements a LED mode where each pressed key
will light up the appropriate symbol on the LEDs, on the side it was
pressed on. We use different timers for each half.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
ca1cd7c590
Implement a set of .clear() methods
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
e48d23c0ea
Add a way to display symbols in different colors
...
While it is possible to play with the ->color property, sometimes one
just wants to override the color once. In this case, saving the previous
value, and changing it back would be an overkill.
Instead, add a few functions that take a color argument as well, and
make the color-less arities use the global property.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
02a34f5907
Merge pull request #3 from keyboardio/f/gamma-correction
...
Implement gamma correction for the LEDs
8 years ago
Gergely Nagy
46bf755e7c
Implement gamma correction for the LEDs
...
Instead of using the supplied linear color component values as-is,
convert them to gamma-corrected, non-linear values first. This way, we
can use numbers like 127 to mean half brightness, and have it
automatically translated to the correct, gamma-corrected value.
Table copied from:
https://learn.adafruit.com/led-tricks-gamma-correction/the-quick-fix
This adds a bit over 256 bytes of code, but makes working with colors a
lot easier.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
baa8252e67
Mark the plugin broken for now
...
Due to fiddling with EEPROM, and the Guesser/Tracker selection not working, the
whole plugin will need to be rethought.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
0f65281703
Restrict the max sequence length to 4
...
Using a max length of 16 is a huge waste of resources, restrict it to 4 instead.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
976b835441
standardize -latest ordering and remove a stray .hex
8 years ago
Jesse Vincent
16bfa9e771
add a -latest alias for the "with-bootloader" version of the hex file
8 years ago
Jesse Vincent
2dbed0027d
Make the bootloader path overridable
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
Jesse Vincent
fa56858695
Add the cwd to the searchpath for kaleidoscope builder. This lets you build a sketch with the traditional arduino sketch code layout
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
Jesse Vincent
d119dcd105
remove a vestigal reloading of the sketch's settings file
8 years ago
Jesse Vincent
6b868de066
Also search for a settings file in the root of the source directory without a leading .
8 years ago
Jesse Vincent
e7b186c597
Rename the settings file for the builder to give a hint as to what it's a settings file for
8 years ago
Jesse Vincent
cd843688ae
reorganize settings and add section headings for clarity
8 years ago
Jesse Vincent
62b556c23a
Lift the macOS overrides up to before the definitions that use them
8 years ago
Gergely Nagy
80178956e4
Travis: Remove obsolete workarounds
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
496cff414b
Travis: Remove obsolete workarounds
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
a0a5604c27
Merge pull request #116 from algernon/h/tools/builder/cwd-in-library-path
...
kaleidoscope-builder: Add . to the library path
8 years ago
Jesse Vincent
634dca4a2c
Merge pull request #2 from keyboardio/f/always-trigger
...
Instead of calling macroAction only on keydown, call it every time
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
ef832250f0
Add (optional) Focus hooks
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
212861173c
Add a version to the settings struct
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
eca8be7b57
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
Gergely Nagy
fcde978862
Initial import
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
8be09348a0
Instead of calling macroAction only on keydown, call it every time
...
Call `macroAction` for all `keyState`s, not only when a key toggled on. This
lets the macro itself decide when to act, and makes it possible to have macro
effects on the other states.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
66e8d74a32
Merge branch 'master' of ssh://github.com/keyboardio/KeyboardioFirmware
8 years ago
Gergely Nagy
546f6ea218
kaleidoscope-builder: Add . to the library path
...
Fixes #111 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
8b229b4b09
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
20a6ec4913
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
459b40eebc
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
b203ce754a
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
1dcccb0e37
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
c0d947b1e9
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
69cad076bc
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
79b791d6e7
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
a1af698eb6
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
b488434d4a
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago