diff options
| author | Danny <nooges@users.noreply.github.com> | 2018-09-20 18:37:18 -0400 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-09-20 15:37:18 -0700 |
| commit | 747cf78b5da17969fe057d77512e276fa6c59fd9 (patch) | |
| tree | a7f83b8fa09b177f02bbc7459362766d0828f03a | |
| parent | 99c1c5bfe933865bacdebdcbcfa55954a5a946a2 (diff) | |
| download | qmk_firmware-747cf78b5da17969fe057d77512e276fa6c59fd9.tar.gz qmk_firmware-747cf78b5da17969fe057d77512e276fa6c59fd9.zip | |
Add nano keymap for modding Spooka light (#3953)
| -rw-r--r-- | keyboards/nano/config.h | 5 | ||||
| -rw-r--r-- | keyboards/nano/keymaps/default/rules.mk | 3 | ||||
| -rw-r--r-- | keyboards/nano/keymaps/spooka/config.h | 25 | ||||
| -rw-r--r-- | keyboards/nano/keymaps/spooka/keymap.c | 12 | ||||
| -rw-r--r-- | keyboards/nano/keymaps/spooka/rules.mk | 1 |
5 files changed, 39 insertions, 7 deletions
diff --git a/keyboards/nano/config.h b/keyboards/nano/config.h index 5c4f920df..088fafcaa 100644 --- a/keyboards/nano/config.h +++ b/keyboards/nano/config.h | |||
| @@ -33,12 +33,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 33 | #define MATRIX_COLS 4 | 33 | #define MATRIX_COLS 4 |
| 34 | 34 | ||
| 35 | /* ws2812 RGB LED */ | 35 | /* ws2812 RGB LED */ |
| 36 | #define RGB_DI_PIN B1 | 36 | #define RGB_DI_PIN D3 |
| 37 | #define RGBLIGHT_TIMER | ||
| 38 | #define RGBLIGHT_ANIMATIONS | 37 | #define RGBLIGHT_ANIMATIONS |
| 39 | #define RGBLED_NUM 6 // Number of LEDs | 38 | #define RGBLED_NUM 6 // Number of LEDs |
| 40 | #define ws2812_PORTREG PORTD | ||
| 41 | #define ws2812_DDRREG DDRD | ||
| 42 | 39 | ||
| 43 | /* COL2ROW or ROW2COL */ | 40 | /* COL2ROW or ROW2COL */ |
| 44 | #define DIODE_DIRECTION COL2ROW | 41 | #define DIODE_DIRECTION COL2ROW |
diff --git a/keyboards/nano/keymaps/default/rules.mk b/keyboards/nano/keymaps/default/rules.mk index 457a3d01d..e69de29bb 100644 --- a/keyboards/nano/keymaps/default/rules.mk +++ b/keyboards/nano/keymaps/default/rules.mk | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | ifndef QUANTUM_DIR | ||
| 2 | include ../../../../Makefile | ||
| 3 | endif | ||
diff --git a/keyboards/nano/keymaps/spooka/config.h b/keyboards/nano/keymaps/spooka/config.h new file mode 100644 index 000000000..05900a215 --- /dev/null +++ b/keyboards/nano/keymaps/spooka/config.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2018 Danny Nguyen <danny@keeb.io> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #undef RGBLED_NUM | ||
| 21 | #define RGBLIGHT_ANIMATIONS | ||
| 22 | #define RGBLED_NUM 12 | ||
| 23 | #define RGBLIGHT_HUE_STEP 8 | ||
| 24 | #define RGBLIGHT_SAT_STEP 8 | ||
| 25 | #define RGBLIGHT_VAL_STEP 8 | ||
diff --git a/keyboards/nano/keymaps/spooka/keymap.c b/keyboards/nano/keymaps/spooka/keymap.c new file mode 100644 index 000000000..63b90da09 --- /dev/null +++ b/keyboards/nano/keymaps/spooka/keymap.c | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | #define _MAIN 0 | ||
| 4 | |||
| 5 | #define _______ KC_TRNS | ||
| 6 | |||
| 7 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 8 | [_MAIN] = LAYOUT( | ||
| 9 | RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, | ||
| 10 | RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD | ||
| 11 | ) | ||
| 12 | }; | ||
diff --git a/keyboards/nano/keymaps/spooka/rules.mk b/keyboards/nano/keymaps/spooka/rules.mk new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/keyboards/nano/keymaps/spooka/rules.mk | |||
| @@ -0,0 +1 @@ | |||
