You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
László Monda c074d470a2 Bump version to 8.10.11, update changelog, package.json and versions.h 1 week ago
cla Sign CLA. (#362) 5 months ago
keycluster Fix occasional, accidental scrolling on key cluster initialization. 4 months ago
left Fix up mouse HID report descriptors. (#369) 5 months ago
lib Bump version to 8.10.11, update changelog, package.json and versions.h 1 week ago
right Fix hardware config allignment. (#407) 1 week ago
scripts Bump version to 8.10.11, update changelog, package.json and versions.h 1 week ago
shared Bump version to 8.10.11, update changelog, package.json and versions.h 1 week ago
touchpad Change resolution to 1461 by 984 which equals to 1,000 DPI. 7 months ago
trackball Fix up mouse HID report descriptors. (#369) 5 months ago
trackpoint Fix up mouse HID report descriptors. (#369) 5 months ago
.clang-format Add a clang-format config file 5 years ago
.drone.yml Remove Travis CI configuration file, build Drone CI with verbose output and -Werror. (#371) 5 months ago
.gitattributes Force Unix newlines for *.[ch] files. 5 years ago
.gitignore Added Makefiles for compiling the two projects 3 years ago
.gitmodules Add SDK_2.8.0_MKL17Z32xxx4 submodule via HTTPS. 1 year ago
CHANGELOG.md Bump version to 8.10.11, update changelog, package.json and versions.h 1 week ago
CONTRIBUTING.md Remove Travis CI configuration file, build Drone CI with verbose output and -Werror. (#371) 5 months ago
ISSUE_TEMPLATE Update ISSUE_TEMPLATE 10 months ago
LICENSE Change license. 2 years ago
README.md Remove Travis CI configuration file, build Drone CI with verbose output and -Werror. (#371) 5 months ago
VERSIONING.md Add conditions that external components must satisfy in regards to version numbers in order to be interface with the UHK. 4 years ago

README.md

Ultimate Hacking Keyboard firmware

Build Status

This repository hosts the firmware of the Ultimate Hacking Keyboard.

If you want to use the latest firmware version for your UHK, then instead of going through the pain of building the firmware, simply download the latest release of Agent and update to the latest firmware version within Agent with a click of a button.

Developing

If you're one of the brave few who wants to hack the firmware then read on.

  1. Make sure to clone this repo with:

git clone --recursive git@github.com:UltimateHackingKeyboard/firmware.git

Then, depending whether you want a full IDE experience or just minimal tools for building and flashing firmware, read IDE setup or Minimal development setup (if you prefer a text editor + command line).

IDE setup

  1. Download and install MCUXpresso IDE for Linux, Mac, or Windows.

  2. Install the GNU ARM Eclipse Plugins for in McuXpresso IDE. This is needed to make indexing work, and to avoid the "Orphaned configuration" error message in project properties.

    1. In MCUXpresso IDE, go to Help > "Install New Software...", then a new dialog will appear.
    2. In the Name field type Eclipse Embedded CDT Plug-ins and in the Location field type https://download.eclipse.org/embed-cdt/updates/neon, then click on the Add button.
    3. Go with the flow and install the plugin.
  3. In the IDE, import this project by invoking File -> Import -> General -> Existing Projects into Workspace, select the left or right directory depending on the desired firmware, then click on the Finish button.

  4. In order to be able to flash the firmware via USB from the IDE, you must build Agent which is Git submodule of the this repo and located in the lib/agent directory.

  5. Finally, in the IDE, click on Run -> External Tools -> External Tools Configurations, then select a release firmware to be flashed such as uhk60-right_release_kboot, and click on the Run button.

Going forward, it's easier to flash the firmware of your choice by using the downwards toolbar icon which is located rightwards of the green play + toolbox icon.

Minimal development setup

  1. Install the ARM cross-compiler, cross-assembler and stdlib implementation. Eg. on Arch Linux the packages arm-none-eabi-binutils, arm-none-eabi-gcc, arm-none-eabi-newlib.

  2. Install Node.js v12. If you have a later version, editing the version requirement in lib/agent/package.json might work.

  3. Build UHK Agent. cd lib/agent && npm ci && npm run build.

  4. Still inside the Agent submodule, compile flashing util scripts. cd packages/usb && npx tsc.

  5. When developing, cd to the directory you're working on (left/right). To build and flash the firmware, run make flash. Plain make just builds without flashing.

Releasing

  1. To build a full firmware tarball:
    1. Run npm install in scripts.
    2. Run scripts/make-release.js.
    3. Now, the created tarball scripts/uhk-firmware-VERSION.tar.gz can be flashed with UHK Agent.

Contributing

Want to contribute? Let us show you how.

Custom Firmwares

The following list contains unofficial forks of the firmware. These forks provide functionality unavailable in the official firmware, but come without guarantees of any kind:

  • https://github.com/kareltucek/firmware - firmware featuring macro engine extended by a set of custom commands, allowing more advanced configurations including custom layer switching logic, doubletap bindings, alternative secondary roles etc.

  • https://github.com/p4elkin/firmware - firmware fork which comes with an alternative implementation of the secondary key role mechanism making it possible to use the feature for keys actively involved in typing (e.g. alphanumeric ones).