From 8446a4f8c66f7e0e15f9fd86f007e38465a2d811 Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Tue, 5 Mar 2019 23:20:02 -0500 Subject: [PATCH] added my launchpad --- .../launchpad/keymaps/elpeterson/keymap.c | 39 +++++++++++++++++++ .../launchpad/keymaps/elpeterson/rules.mk | 22 +++++++++++ 2 files changed, 61 insertions(+) create mode 100644 keyboards/launchpad/keymaps/elpeterson/keymap.c create mode 100644 keyboards/launchpad/keymaps/elpeterson/rules.mk diff --git a/keyboards/launchpad/keymaps/elpeterson/keymap.c b/keyboards/launchpad/keymaps/elpeterson/keymap.c new file mode 100644 index 0000000000..62fe7c2f06 --- /dev/null +++ b/keyboards/launchpad/keymaps/elpeterson/keymap.c @@ -0,0 +1,39 @@ +#include QMK_KEYBOARD_H + +// Define Layers +#define _FUNCPAD 0 +#define _PINPAD 1 +#define _RGBPAD 2 +#define _RGBCTRL 3 + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + +[_FUNCPAD] = LAYOUT( \ + LALT(KC_ESC), LALT(KC_Z), \ + KC_F21, KC_F22, \ + KC_F23, KC_F24, \ + TG(1), TG(2)), + +[_PINPAD] = LAYOUT( \ + KC_3, KC_5, \ + KC_8, KC_2, \ + KC_4, KC_2, \ + KC_TRNS, KC_ENT), + +[_RGBPAD] = LAYOUT( \ + RGB_MOD, RGB_TOG, \ + RGB_VAI, RGB_VAD, \ + RGB_SPI, RGB_SPD, \ + TO(3), KC_TRNS), + +[_RGBCTRL] = LAYOUT( \ + RGB_HUI, RGB_HUD, \ + RGB_SAI, RGB_SAD, \ + RGB_VAI, RGB_VAD, \ + KC_TRNS, RGB_TOG) + +}; + +void matrix_init_user(void) { + +} diff --git a/keyboards/launchpad/keymaps/elpeterson/rules.mk b/keyboards/launchpad/keymaps/elpeterson/rules.mk new file mode 100644 index 0000000000..ba450f3a02 --- /dev/null +++ b/keyboards/launchpad/keymaps/elpeterson/rules.mk @@ -0,0 +1,22 @@ + + +# Build Options +# change to "no" to disable the options, or define them in the Makefile in +# the appropriate keymap folder that will get included automatically +# +BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) +MOUSEKEY_ENABLE = no # Mouse keys(+4700) +EXTRAKEY_ENABLE = yes # Audio control and System control(+450) +CONSOLE_ENABLE = no # Console for debug(+400) +COMMAND_ENABLE = no # Commands for debug and configuration +NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +MIDI_ENABLE = no # MIDI controls +AUDIO_ENABLE = no # Audio output on port C6 +UNICODE_ENABLE = no # Unicode +BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID +RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. + +# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend +