cub-uanic / tmk_keyboard

keyboard controller firmware for Atmel AVR USB family
158 stars 157 forks source link

Bootloader keymap #14

Closed Linuus closed 9 years ago

Linuus commented 9 years ago

Hi!

In the Massdrop config generator you can assign a key as [Teensy] which is the same as pushing on the bootloader button on the Teensy. I can't find anything about that on this project. Is it possible to map a bootloader key with this firmware?

I just want to know whether I need to drill a hole in my case or not :)

Linuus commented 9 years ago

I found out about the Magic key stuff. By default (qwerty default layout) it jumps to bootloader when pressing Space + b while turning the ergodox on, i.e. putting in the USB cable. Cool :) I guess I can mount the case now without drilling an extra hole for the teensy button.

kaimi commented 9 years ago

There’s actually a function defined for exactly that:

https://github.com/cub-uanic/tmk_keyboard/blob/cub_layout/keyboard/ergodox/keymap_cub.h#L468 https://github.com/cub-uanic/tmk_keyboard/blob/cub_layout/keyboard/ergodox/keymap_cub.h#L382 https://github.com/cub-uanic/tmk_keyboard/blob/cub_layout/keyboard/ergodox/keymap_cub.h#L365