265988ee25bc7d62e99d354116b4bd574b51b33b
We need to store the previous state of the keys, to figure out when a specific key is released, as opposed to simply not being pressed. This is required for layer keys such as `Mod` and `Fn` to work properly when there are more than one of them on the keymap. Without being able to tell when a key is released, we would not be able to turn a layer off only when no layer key is held. Not easily, anyway: we'd have to track the state of all layer keys... but then it is easier to just track them all. Thankfully, the memcpy at the end is fast, as it only needs to copy 70 bytes. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Ultimate Hacking Keyboard firmware
This repository hosts the firmware of the Ultimate Hacking Keyboard.
Build
Please make sure to clone this repo with:
git clone --recursive git@github.com:UltimateHackingKeyboard/firmware.git
Install Kinetis Design Studio (KDS) and import the project by invoking File -> Import -> General -> Existing Projects into Workspace, select the right directory, and click on the Finish button. At this point, you should be able to build the firmware in KDS.
Alternatively, you can use the build scripts of the right/build/armgcc directory.
Contributing
Want to contribute? Let us show you how.
Description
Languages
C
90.8%
C++
3.6%
Linker Script
3.3%
Makefile
1.9%
JavaScript
0.4%