From dab9edeabb1ccbaa0d71d10b5b349c6862dea771 Mon Sep 17 00:00:00 2001 From: Markus Knutsson Date: Fri, 30 Sep 2022 05:01:33 +0200 Subject: [Keyboard] Add Little Big Scroll 6 macropad (#18510) Co-authored-by: Joel Challis Co-authored-by: Drashna Jaelre --- .../tweetydabird/lbs6/keymaps/default/keymap.c | 30 ++++++++++++++++++++++ .../tweetydabird/lbs6/keymaps/default/readme.md | 3 +++ 2 files changed, 33 insertions(+) create mode 100644 keyboards/tweetydabird/lbs6/keymaps/default/keymap.c create mode 100644 keyboards/tweetydabird/lbs6/keymaps/default/readme.md (limited to 'keyboards/tweetydabird/lbs6/keymaps') diff --git a/keyboards/tweetydabird/lbs6/keymaps/default/keymap.c b/keyboards/tweetydabird/lbs6/keymaps/default/keymap.c new file mode 100644 index 0000000000..590cb8ea0b --- /dev/null +++ b/keyboards/tweetydabird/lbs6/keymaps/default/keymap.c @@ -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; +} diff --git a/keyboards/tweetydabird/lbs6/keymaps/default/readme.md b/keyboards/tweetydabird/lbs6/keymaps/default/readme.md new file mode 100644 index 0000000000..22c4296f55 --- /dev/null +++ b/keyboards/tweetydabird/lbs6/keymaps/default/readme.md @@ -0,0 +1,3 @@ +# The default keymap for LBS6 + +This is a very basic layout using LBS6 as media playback buttons. -- cgit v1.2.3