diff options
| author | IBNobody <protospherex@gmail.com> | 2016-04-15 16:32:44 -0500 |
|---|---|---|
| committer | IBNobody <protospherex@gmail.com> | 2016-04-15 16:32:44 -0500 |
| commit | 2aa51e4416b65317b16660c0676696974b2dcfc5 (patch) | |
| tree | d978673b6a73becd60573b517df2f754d3e6e0c0 | |
| parent | 8f85117aa9e060371177e3b523bc89dc7aad19e8 (diff) | |
| download | qmk_firmware-2aa51e4416b65317b16660c0676696974b2dcfc5.tar.gz qmk_firmware-2aa51e4416b65317b16660c0676696974b2dcfc5.zip | |
Tweaking PVC atomic layout
| -rw-r--r-- | keyboard/atomic/Makefile | 30 | ||||
| -rw-r--r-- | keyboard/atomic/keymaps/pvc/keymap.c | 13 | ||||
| -rw-r--r-- | keyboard/atomic/keymaps/pvc/makefile.mk | 27 |
3 files changed, 39 insertions, 31 deletions
diff --git a/keyboard/atomic/Makefile b/keyboard/atomic/Makefile index 1203cf6a3..3f066aebc 100644 --- a/keyboard/atomic/Makefile +++ b/keyboard/atomic/Makefile | |||
| @@ -51,8 +51,6 @@ TARGET_DIR = . | |||
| 51 | # # project specific files | 51 | # # project specific files |
| 52 | SRC = atomic.c | 52 | SRC = atomic.c |
| 53 | 53 | ||
| 54 | CONFIG_H = config.h | ||
| 55 | |||
| 56 | ifdef keymap | 54 | ifdef keymap |
| 57 | KEYMAP = $(keymap) | 55 | KEYMAP = $(keymap) |
| 58 | endif | 56 | endif |
| @@ -87,6 +85,8 @@ endif | |||
| 87 | 85 | ||
| 88 | SRC := $(KEYMAP_FILE) $(SRC) | 86 | SRC := $(KEYMAP_FILE) $(SRC) |
| 89 | 87 | ||
| 88 | CONFIG_H = config.h | ||
| 89 | |||
| 90 | # MCU name | 90 | # MCU name |
| 91 | #MCU = at90usb1287 | 91 | #MCU = at90usb1287 |
| 92 | MCU = atmega32u4 | 92 | MCU = atmega32u4 |
| @@ -139,21 +139,21 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096 | |||
| 139 | # change to "no" to disable the options, or define them in the makefile.mk in | 139 | # change to "no" to disable the options, or define them in the makefile.mk in |
| 140 | # the appropriate keymap folder that will get included automatically | 140 | # the appropriate keymap folder that will get included automatically |
| 141 | # | 141 | # |
| 142 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | 142 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) |
| 143 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 143 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 144 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 144 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 145 | CONSOLE_ENABLE = yes # Console for debug(+400) | 145 | CONSOLE_ENABLE = yes # Console for debug(+400) |
| 146 | COMMAND_ENABLE = yes # Commands for debug and configuration | 146 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 147 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 147 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 148 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 148 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| 149 | MIDI_ENABLE = no # MIDI controls | 149 | MIDI_ENABLE = no # MIDI controls |
| 150 | AUDIO_ENABLE = no # Audio output on port C6 | 150 | AUDIO_ENABLE = no # Audio output on port C6 |
| 151 | UNICODE_ENABLE = no # Unicode | 151 | UNICODE_ENABLE = no # Unicode |
| 152 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 152 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 153 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 153 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
| 154 | 154 | ||
| 155 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 155 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 156 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 156 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 157 | 157 | ||
| 158 | ifdef KEYMAP | 158 | ifdef KEYMAP |
| 159 | 159 | ||
diff --git a/keyboard/atomic/keymaps/pvc/keymap.c b/keyboard/atomic/keymaps/pvc/keymap.c index 627f57ff7..7bfd910a1 100644 --- a/keyboard/atomic/keymaps/pvc/keymap.c +++ b/keyboard/atomic/keymaps/pvc/keymap.c | |||
| @@ -1,13 +1,15 @@ | |||
| 1 | #include "atomic.h" | 1 | #include "atomic.h" |
| 2 | #include "action_layer.h" | 2 | #include "action_layer.h" |
| 3 | |||
| 3 | #ifdef AUDIO_ENABLE | 4 | #ifdef AUDIO_ENABLE |
| 4 | #include "audio.h" | 5 | #include "audio.h" |
| 5 | #endif | 6 | #endif |
| 6 | 7 | ||
| 7 | #define _QW 0 | 8 | #define _QW 0 |
| 8 | #define _LW 1 | 9 | #define _LW 1 |
| 9 | #define _RS 2 | 10 | #define _RS 2 |
| 10 | #define _FN 3 | 11 | #define _AD 3 |
| 12 | #define _FN 4 | ||
| 11 | 13 | ||
| 12 | #define M_QW 0 | 14 | #define M_QW 0 |
| 13 | #define M_LW 1 | 15 | #define M_LW 1 |
| @@ -62,6 +64,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 62 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, ___T___, ___T___, KC_MS_U, KC_WH_D }, | 64 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, ___T___, ___T___, KC_MS_U, KC_WH_D }, |
| 63 | { _______, _______, _______, _______, _______, KC_BTN1, KC_BTN1, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R }, | 65 | { _______, _______, _______, _______, _______, KC_BTN1, KC_BTN1, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R }, |
| 64 | }, | 66 | }, |
| 67 | [_ADJ] = { /* ADJUST */ | ||
| 68 | { KC_NLCK, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, ___T___, ___T___ }, | ||
| 69 | { KC_SLCK, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_PAUS, KC_PSCR }, | ||
| 70 | { KC_CAPS, KC_BTN5, KC_BTN4, KC_BTN3, KC_BTN2, KC_ACL0, KC_ACL2, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, _______, ___T___, ___T___, KC_WH_U }, | ||
| 71 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, ___T___, ___T___, KC_MS_U, KC_WH_D }, | ||
| 72 | { _______, _______, _______, _______, _______, KC_BTN1, KC_BTN1, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R }, | ||
| 73 | }, | ||
| 65 | }; | 74 | }; |
| 66 | 75 | ||
| 67 | #define IS_LAYER_ON(layer) ((layer_state) & (1<<(layer))) | 76 | #define IS_LAYER_ON(layer) ((layer_state) & (1<<(layer))) |
diff --git a/keyboard/atomic/keymaps/pvc/makefile.mk b/keyboard/atomic/keymaps/pvc/makefile.mk index c41102f5d..d46996650 100644 --- a/keyboard/atomic/keymaps/pvc/makefile.mk +++ b/keyboard/atomic/keymaps/pvc/makefile.mk | |||
| @@ -1,18 +1,17 @@ | |||
| 1 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | 1 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) |
| 2 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 2 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 3 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 3 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 4 | CONSOLE_ENABLE = yes # Console for debug(+400) | 4 | CONSOLE_ENABLE = yes # Console for debug(+400) |
| 5 | COMMAND_ENABLE = yes # Commands for debug and configuration | 5 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 6 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: | 6 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 7 | # https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 7 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
| 8 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 8 | MIDI_ENABLE = no # MIDI controls |
| 9 | MIDI_ENABLE = no # MIDI controls | 9 | AUDIO_ENABLE = yes # Audio output on port C6 |
| 10 | AUDIO_ENABLE = yes # Audio output on port C6 | 10 | UNICODE_ENABLE = no # Unicode |
| 11 | UNICODE_ENABLE = no # Unicode | 11 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 12 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 12 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
| 13 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 14 | 13 | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 14 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 15 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 17 | 16 | ||
| 18 | CONFIG_H = keymaps/$(KEYMAP)/config.h \ No newline at end of file | 17 | CONFIG_H = keymaps/$(KEYMAP)/config.h \ No newline at end of file |
