1
0
Fork 0

[Keyboard] Add Little Big Scroll 6 macropad (#18510)

Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
Markus Knutsson 2022-09-30 05:01:33 +02:00 committed by GitHub
parent 2c4fd924c0
commit dab9edeabb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 148 additions and 0 deletions

View file

@ -0,0 +1,30 @@
// Copyright 2022 Markus Knutsson (@TweetyDaBird)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
// Defines names for use in layer keycodes and the keymap
enum layer_names {
_BASE
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT(
KC_MPLY,
RGB_MOD, RGB_VAI, RGB_TOG,
KC_MPRV, KC_MPLY, KC_MNXT
)
};
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) {
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
}
}
return false;
}