The short version: in function rgb_matrix_indicators_kb() in file keymap.c, use function rgb_matrix_set_color(). For example, to set a blue colour on key F7 on a Keychron V5: Introduction It isn’t well advertised in the QMK documentation or any examples you may …

Setting RGB colour for individual keys in QMK (per-key RGB colour) Read more »

The short version: Use QMK‘s send_string_with_delay() with binary content (as it is not a real string) encoded in a particular manner to piecemeal execute a macro, housekeeping_task_user() to run a state machine for executing the macro (which can check for …

The basis for a way to cancel QMK macros in progress Read more »

For example, the total number of key actions available to macros defined in Via can be increased from about 150 to use most of the free flash memory, using emulated EEPROM memory (or possibly be limited by the RAM (used …

Via macros (on mechanical keyboards with QMK) are less crippled than expected, e.g., unlimited number of key actions in macros Read more »

The short version: Compiler errors of the type “error: stray \342” are not mysterious at all. They can easily be analysed directly, without any guesswork required whatsoever. Triplets or doublets of errors, starting with 342 (octal) or 302 (octal), are …

Unicode blues in C++ and similar languages (after copying from web pages, Skype chat, etc.)—”error: stray \342″ Read more »

The Mortensen technology popularity index (MTPI) is equating the number of times some technology is misspelt with its popularity, that is, how many are actually using the technology and misspelling it when mentioning it on the Internet is taken as …

Introducing the Mortensen technology popularity index (Edit Overflow) Read more »

The short version: Two external pull-up resistors of 10 kΩ on the PS/2 DATA and CLK signal lines (corresponding to USB signal lines D- and D+, respectively) are sufficient to interface to a PS/2-capable USB keyboard. Say, to get a macro …

PS/2 support on modern USB keyboards Read more »

The short version is that a 17 ms delay between each key action (press or release, normal key or modifier key) for an Arduino-based keyboard will solve most problems. At this point, there isn’t any known solution for USB 3 ports, …

Blues typing out fixed texts on both QMK and Arduino Leonardo-based macro keyboards Read more »

Tagged with:

The short version is: Download the tar ball from arm.com, extract, add the /bin folder in the extracted to the path, and make GDB work by adding symbolic links in /usr/lib/x86_64-linux-gnu for the expected version 5 of the libraries “libncurses” …

Getting the ARM toolchain to work on Ubuntu 19.04 and later (including for Black Magic Probe (BMP)) Read more »

Tagged with: , , , , , , ,