aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIBNobody <protospherex@gmail.com>2016-04-15 16:32:44 -0500
committerIBNobody <protospherex@gmail.com>2016-04-15 16:32:44 -0500
commit2aa51e4416b65317b16660c0676696974b2dcfc5 (patch)
treed978673b6a73becd60573b517df2f754d3e6e0c0
parent8f85117aa9e060371177e3b523bc89dc7aad19e8 (diff)
downloadqmk_firmware-2aa51e4416b65317b16660c0676696974b2dcfc5.tar.gz
qmk_firmware-2aa51e4416b65317b16660c0676696974b2dcfc5.zip
Tweaking PVC atomic layout
-rw-r--r--keyboard/atomic/Makefile30
-rw-r--r--keyboard/atomic/keymaps/pvc/keymap.c13
-rw-r--r--keyboard/atomic/keymaps/pvc/makefile.mk27
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
52SRC = atomic.c 52SRC = atomic.c
53 53
54CONFIG_H = config.h
55
56ifdef keymap 54ifdef keymap
57 KEYMAP = $(keymap) 55 KEYMAP = $(keymap)
58endif 56endif
@@ -87,6 +85,8 @@ endif
87 85
88SRC := $(KEYMAP_FILE) $(SRC) 86SRC := $(KEYMAP_FILE) $(SRC)
89 87
88CONFIG_H = config.h
89
90# MCU name 90# MCU name
91#MCU = at90usb1287 91#MCU = at90usb1287
92MCU = atmega32u4 92MCU = 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#
142BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) 142BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
143MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 143MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
144EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 144EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
145CONSOLE_ENABLE = yes # Console for debug(+400) 145CONSOLE_ENABLE = yes # Console for debug(+400)
146COMMAND_ENABLE = yes # Commands for debug and configuration 146COMMAND_ENABLE = yes # Commands for debug and configuration
147NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 147NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
148BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality 148BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
149MIDI_ENABLE = no # MIDI controls 149MIDI_ENABLE = no # MIDI controls
150AUDIO_ENABLE = no # Audio output on port C6 150AUDIO_ENABLE = no # Audio output on port C6
151UNICODE_ENABLE = no # Unicode 151UNICODE_ENABLE = no # Unicode
152BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 152BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
153RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 153RGBLIGHT_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
156SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 156SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
157 157
158ifdef KEYMAP 158ifdef 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 @@
1BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) 1BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
2MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 2MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
3EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 3EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
4CONSOLE_ENABLE = yes # Console for debug(+400) 4CONSOLE_ENABLE = yes # Console for debug(+400)
5COMMAND_ENABLE = yes # Commands for debug and configuration 5COMMAND_ENABLE = yes # Commands for debug and configuration
6NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: 6NKRO_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 7BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
8BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 8MIDI_ENABLE = no # MIDI controls
9MIDI_ENABLE = no # MIDI controls 9AUDIO_ENABLE = yes # Audio output on port C6
10AUDIO_ENABLE = yes # Audio output on port C6 10UNICODE_ENABLE = no # Unicode
11UNICODE_ENABLE = no # Unicode 11BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
12BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 12RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
13RGBLIGHT_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
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 15SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17 16
18CONFIG_H = keymaps/$(KEYMAP)/config.h \ No newline at end of file 17CONFIG_H = keymaps/$(KEYMAP)/config.h \ No newline at end of file