Jesse Vincent
6164386466
Break apart a method for easier reuse
8 years ago
Jesse Vincent
37711f11ed
Merge pull request #22 from algernon/f/lookup_key
...
Add a lookup_key() method
8 years ago
Jesse Vincent
8afa7d2dd2
Merge pull request #23 from algernon/h/led_get_crgb_at-fix
...
Fix led_get_crgb_at
8 years ago
Gergely Nagy
a599d4601a
Fix led_get_crgb_at
...
The function should return a value.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
9f7d3062e7
Add a lookup_key() method
...
This allows external libraries to look up the keycode for a given
position, without having to reimplement the keymap themselves. This
becomes important when you hook into the event processing.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
8e634974d1
Merge pull request #21 from algernon/poc/handle_key_user
...
Librarification, and using external libraries
8 years ago
Gergely Nagy
f3c9d328ba
key_events: A way to hook into the event handling
...
This adds a new `handle_user_key_event` function, that will get called
before anything else, and can override what happens. If it returns true,
the event will not be processed further by the firmware. By default,
this function returns false, and is a no-op.
It is defined with a `weak` attribute, to let the linker know that any
other function with the same name should override his one. This makes it
possible to have another version of this function in a firmware Sketch,
and override the behaviour, to extend the event handling.
This is the foundation that allows it to use external libraries, and tap
into the firmware's event handler, to add new stuff. (We can already
hook into the main loop by changing the top `loop` function in the
Sketch)
This addresses #21 for the most part.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
771c0de247
move keymaps to progmem. This is a fairly large memory win
8 years ago
Jesse Vincent
68fed1fd17
regenerate keymaps
8 years ago
Jesse Vincent
359200f15e
Update QWERTY map to swap LED and program keys
8 years ago
Jesse Vincent
0615646c33
Add a set of predefined LED color options
8 years ago
Jesse Vincent
0dc50ff141
Add a helper method for setting all LEDs to a non-predefined color
8 years ago
Jesse Vincent
130af01807
Chained ifs -> case statement.
...
Easier to read. Easier to modify. More size-efficient code.
8 years ago
Jesse Vincent
25f10397fe
Update copyright year
8 years ago
Jesse Vincent
70361b1f71
Drop the default LED rainbow effect to stay under half an amp
8 years ago
Jesse Vincent
751fa19741
Delay 100ms when starting up. That's long enough to let the ATTiny get
...
past the bootloader delay
8 years ago
jesse
a717a74a47
Slow down the rainbows to give fewer headaches
8 years ago
jesse
dfa2a1c68b
Add udev rules for linux, so we don't have problems programming
8 years ago
Jesse Vincent
34c0410c78
Merge pull request #19 from algernon/h/mute-fix
...
key_defs.h: Correct the Key_volumeMute definition
8 years ago
Gergely Nagy
d76938430f
key_defs.h: Correct the Key_volumeMute definition
...
There is no HID_CONSUMER_VOLUME_MUTE, only HID_CONSUMER_MUTE. Use the
latter one for Key_volumeMute.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
255d483a3d
It turns out that editing echo lines in the Makefile after you run tests can result in build failures.
...
Who knew? (oops)
8 years ago
Jesse Vincent
c8fa11bb22
Add support for building and including the bootloader. Clean up makefile a tiny bit
8 years ago
Jesse Vincent
04e7d78c58
We no longer have the subdir NOTICE was talking about.
8 years ago
Jesse Vincent
63cb1f393f
Try coming up the current arduino builder, because why not
8 years ago
Jesse Vincent
332d9d05c4
First pass at a travis for this new thing using an arduino board definition
8 years ago
Jesse Vincent
1f4625edad
Rename keymaps.h to keymap_metadata, so it's less likely generated/keymaps.h and keymap_metadata.h will get confused with each other
8 years ago
Jesse Vincent
446036d158
Undo numist's nicer code layout so we can build as a 'regular' arduino sketch
8 years ago
Jesse Vincent
1f39939b23
Update Scanner submodule to current master (with new v2 wire protocol)
8 years ago
Jesse Vincent
fc3858bd5a
Switch to the 'new way' of reading data from i2c
8 years ago
Jesse Vincent
f72ef245a4
Interleave updates to left and right hands.
...
This helps mitigate an issue where we send multiple updates to the same hand
fast enough that one of them fails to be read successfully
8 years ago
Jesse Vincent
de92bcc0de
Speed up rainbow and rainbow wave effects
8 years ago
Jesse Vincent
aa04ee17ba
Add a note about setting our i2c speed
8 years ago
Jesse Vincent
c1e6b40069
Switch from Rainbow Wave to Rainbow by default
8 years ago
Jesse Vincent
3a5cb40964
Add an ICSP programming target for the 32U4. This can be ... a lot faster
8 years ago
Scott Perry
638dcc660c
More reliable device discovery when flashing
8 years ago
Scott Perry
8a0006563c
Treat the shell commands as a Markdown code block
8 years ago
Jesse Vincent
b9748f204f
Merge branch 'dependency-integration'
...
* dependency-integration:
Add some notes to the README about how to get a working build environment
installed arduino toolchain is another level up now as well
Travis needs to `cd` into `/source` before invoking make
Roll back local changes
Default action for `make` should be `build`
Move firmware into /source, deps as submodules in /libraries
8 years ago
Jesse Vincent
945bec0d10
Add some notes to the README about how to get a working build environment
8 years ago
Scott Perry
86769ed202
installed arduino toolchain is another level up now as well
8 years ago
Scott Perry
8d4f6ec5da
Travis needs to `cd` into `/source` before invoking make
8 years ago
Scott Perry
4510f893ca
Roll back local changes
8 years ago
Scott Perry
a02eea9704
Default action for `make` should be `build`
8 years ago
Scott Perry
51eba85906
Move firmware into /source, deps as submodules in /libraries
8 years ago
Scott Perry
9ebc996661
Merge branch 'master' of https://github.com/keyboardio/KeyboardioFirmware
8 years ago
Scott Perry
d60df1b099
Revert "Prettier keymap formatting"
...
This reverts commit 0f449a320e
.
8 years ago
Jesse Vincent
a4bf3d099b
Ignore failures when we reset the keyboard into bootloader mode.
...
We probably already did the reset and are just trying to upload a new
firmware.
9 years ago
Jesse Vincent
0f1bf7ab7f
Since we always update the LEDS, factor out that call into the surrounding code.
9 years ago
Jesse Vincent
ec40cfbbfb
Add a 'get_crgb_at' API
9 years ago
Jesse Vincent
0cfef37d44
Dumb LED effects update
9 years ago
Jesse Vincent
40f71ffcaa
Guard against users accidentally overwriting the keymatrix buffer when
...
trying to write an LED that doesn't exist
9 years ago