Reactor is the firmware generator part of Fusion.
It takes the JSON's exported by the Fusion project and process them in to ready-to-be-downloaded firmware.
- Take JSON input
- Generate a .c template file based on the JSON and the liquid template. Name it something unique
- Create a hex file by compiling that c file. Name it something unique too
- Read .hex file and return it
You can run the tests with
be guard - which will watch for changes in ruby files and run whenever they do.
Testing is done in ruby 2.2.2
Updating the firmware
The qmk_firmware is included in this repository as a git subtree. Any changes to qmk_firmware should be made to the qmk_firmware repository not this repository.
To update the subtree from the qmk_firmware repository, pull the updates from qmk_firmware into this repository.
If you don't have the remote and the subtree setup:
Add the remote for qmk_firmware
git remote add -f qmk_firmware email@example.com:jackhumbert/qmk_firmware.git
Add the subtree
git subtree add --prefix lib/firmware qmk_firmware master --squash
If you have the remote and subtree setup:
Fetch the updates
git fetch qmk_firmware master
Update the subtree
git subtree pull --prefix lib/firmware qmk_firmware master --squash
Using the instructions from the teensy loader build environment:
sudo apt-get install gcc-avr binutils-avr avr-libc
Using homebrew it's easy to compile the firmware:
brew tap osx-cross/avr brew install avr-libc
Next cd into the appropriate folder of the qmk_firmware, say keyboard/ergodox_ez
make for the default keymap, or