diff options
author | James Young <18669334+noroadsleft@users.noreply.github.com> | 2021-01-22 18:02:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 18:02:40 -0800 |
commit | 3a7573436ae6ab20973389a4051a8785399539f2 (patch) | |
tree | 4e9d11ac68e0744269495f7fae243eb46f120d54 /keyboards/program_yoink/program_yoink.c | |
parent | 7e77c2361fbfba60fabb490a8dae310d5b7309ba (diff) | |
download | qmk_firmware-3a7573436ae6ab20973389a4051a8785399539f2.tar.gz qmk_firmware-3a7573436ae6ab20973389a4051a8785399539f2.zip |
Program Yoink! refactor (#11636)
* split config.h for each variant
* split rules.mk for each variant
* split source and header files for each variant
* move keymaps to the appropriate variant
* update keyboard readme
* update keymap readmes
* differentiate Staggered and Ortho USB Device Strings
* clean up formatting in info.json
* split info.json files for each variant
* break up the info.json for readability
* correct key positioning and board dimensions
* correct key object sequences
* add weak encoder function to keyboard level
Allows Configurator-compiled firmware to have encoder functionality.
* add variant-specific readme files and bootloader instructions
Diffstat (limited to 'keyboards/program_yoink/program_yoink.c')
-rw-r--r-- | keyboards/program_yoink/program_yoink.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/keyboards/program_yoink/program_yoink.c b/keyboards/program_yoink/program_yoink.c index e549c98e9..a974d7f6f 100644 --- a/keyboards/program_yoink/program_yoink.c +++ b/keyboards/program_yoink/program_yoink.c | |||
@@ -15,3 +15,14 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "program_yoink.h" | 17 | #include "program_yoink.h" |
18 | |||
19 | __attribute__ ((weak)) | ||
20 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
21 | if (index == 0) { | ||
22 | if (clockwise) { | ||
23 | tap_code(KC_VOLU); | ||
24 | } else { | ||
25 | tap_code(KC_VOLD); | ||
26 | } | ||
27 | } | ||
28 | } | ||