Skip to content

Helper Scripts

LastContinue edited this page Jul 20, 2020 · 10 revisions

Flashing

At some point in time, QMK Toolbox started to support mdloader. This is the path I'd take if you're just wanting flash your keyboards from a precompiled .bin script (like the the ones that come from Massdrop's GUI).

Before QMK Toolbox started to support mdloader I made some drag and drop tools using MacOs's Automator and Window's Powershell. These still might be interesting to some people, but unless you're just feeling like you want to hack on something; I'd just stick with QMK Toolbox

I also made some shell scripts that automate compiling a keymap, as well as flashing them onto the board from the command line. This is what I use whenever I want to make a change to my board, but I understand some people like visual tools 😁

Mac

  • Automate gathering of files and setting permissions. Also includes an Automator shortcut that allows you to drag and drop bin files! Drag n Drop
  • Automate loading bin onto board (via Terminal) ldr.sh
  • Automate building bin from QMK, then loading bin onto board (via Terminal) bld-ldr.sh This is what I use ⭐

Windows

  • Automate gathering of files and setting permissions. Also includes a PowerShell shortcut that allows you to drag and drop bin files! Drag n Drop via PowerShell
  • Automate loading bin onto board (via Powershell) pwr-ldr.ps1

Light Math

All of the "Light Math" here is based on my "ancient" QMK fork. Current QMK uses something completely different that I haven't set aside the time to try to figure out (mostly because my old stuff still works). If you want contribute to QMK, then you'll need to figure something else out, but if you're okay with old code, then the below will still work for you 😄

Doing key-by-key color config in QMK is confusing at first. I originally did a spreadsheet to help, but later I made a python script that I use because I ultimately found it easier.
https://github.com/LastContinue/ctrl-info/blob/master/scripts/leds_python3.py

The arrays are the LED numbers, which can be found https://github.com/LastContinue/ctrl-info/blob/master/led_map.png or https://github.com/LastContinue/ctrl-info/blob/master/alt_led_map.png depending on which board you have.

See https://github.com/LastContinue/ctrl-info/wiki/Light-Math for a full write-up

Clone this wiki locally