aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/dk60/config.h61
-rw-r--r--keyboards/dk60/dk60.c2
-rw-r--r--keyboards/dk60/dk60.h4
-rw-r--r--keyboards/dk60/keymaps/default/keymap.c2
-rw-r--r--keyboards/dk60/rules.mk9
5 files changed, 37 insertions, 41 deletions
diff --git a/keyboards/dk60/config.h b/keyboards/dk60/config.h
index 315f4fcb1..e586056cf 100644
--- a/keyboards/dk60/config.h
+++ b/keyboards/dk60/config.h
@@ -16,46 +16,41 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef CONFIG_H 18#ifndef CONFIG_H
19#define CONFIG_H 19 #define CONFIG_H
20 20
21#include "config_common.h" 21 #include "config_common.h"
22 22
23/* USB Device descriptor parameter */ 23 /* USB Device descriptor parameter */
24#define VENDOR_ID 0xFEED 24 #define VENDOR_ID 0xFEED
25#define PRODUCT_ID 0x6060 25 #define PRODUCT_ID 0x6060
26#define DEVICE_VER 0x0003 26 #define DEVICE_VER 0x0003
27#define MANUFACTURER DARKOU 27 #define MANUFACTURER DARKOU
28#define PRODUCT DK60 28 #define PRODUCT DK60
29#define DESCRIPTION QMK keyboard firmware for DK60 support 29 #define DESCRIPTION QMK keyboard firmware for DK60 support
30 30
31/* key matrix size */ 31 /* key matrix size */
32#define MATRIX_ROWS 5 32 #define MATRIX_ROWS 5
33#define MATRIX_COLS 13 33 #define MATRIX_COLS 13
34 34
35// ROWS: Top to bottom, COLS: Left to right 35 // ROWS: Top to bottom, COLS: Left to right
36 36
37#define MATRIX_ROW_PINS { B6, B4, D7, D6, D4 } 37 #define MATRIX_ROW_PINS { B6, B4, D7, D6, D4 }
38#define MATRIX_COL_PINS { B0, B3, B2, B1, D3, D5, B5, B7, C6, C7, D0, D1, D2 } 38 #define MATRIX_COL_PINS { B0, B3, B2, B1, D3, D5, B5, B7, C6, C7, D0, D1, D2 }
39#define UNUSED_PINS { F1, F4, F5, F6, F7} 39 #define UNUSED_PINS
40 40
41/* COL2ROW or ROW2COL */ 41 /* COL2ROW or ROW2COL */
42#define DIODE_DIRECTION COL2ROW 42 #define DIODE_DIRECTION COL2ROW
43 43
44/* Set 0 if debouncing isn't needed */ 44 /* Set 0 if debouncing isn't needed */
45#define DEBOUNCING_DELAY 5 45 #define DEBOUNCING_DELAY 5
46 46
47/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ 47 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
48#define LOCKING_SUPPORT_ENABLE 48 #define LOCKING_SUPPORT_ENABLE
49/* Locking resynchronize hack */ 49 /* Locking resynchronize hack */
50#define LOCKING_RESYNC_ENABLE 50 #define LOCKING_RESYNC_ENABLE
51
52/* key combination for command */
53#define IS_COMMAND() ( \
54 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
55)
56
57/* Backlight configuration
58 */
59#define BACKLIGHT_LEVELS 4
60 51
52 /* key combination for command */
53 #define IS_COMMAND() ( \
54 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
55 )
61#endif 56#endif
diff --git a/keyboards/dk60/dk60.c b/keyboards/dk60/dk60.c
index 40fee6f70..40f24c287 100644
--- a/keyboards/dk60/dk60.c
+++ b/keyboards/dk60/dk60.c
@@ -10,4 +10,4 @@ void led_set_kb(uint8_t usb_led) {
10 } 10 }
11 11
12 led_set_user(usb_led); 12 led_set_user(usb_led);
13} \ No newline at end of file 13}
diff --git a/keyboards/dk60/dk60.h b/keyboards/dk60/dk60.h
index cdb756114..572100f3a 100644
--- a/keyboards/dk60/dk60.h
+++ b/keyboards/dk60/dk60.h
@@ -10,7 +10,7 @@ inline void dk60_esc_led_on(void) { DDRF |= (1<<0); PORTF &= ~(1<<0); }
10inline void dk60_caps_led_off(void) { DDRE &= ~(1<<6); PORTE &= ~(1<<6); } 10inline void dk60_caps_led_off(void) { DDRE &= ~(1<<6); PORTE &= ~(1<<6); }
11inline void dk60_esc_led_off(void) { DDRF &= ~(1<<0); PORTF &= ~(1<<0); } 11inline void dk60_esc_led_off(void) { DDRF &= ~(1<<0); PORTF &= ~(1<<0); }
12 12
13#define ___ KC_TRNS 13#define ___ KC_NO
14 14
15#define KEYMAP( \ 15#define KEYMAP( \
16 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K4B, K4A, \ 16 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K4B, K4A, \
@@ -26,4 +26,4 @@ inline void dk60_esc_led_off(void) { DDRF &= ~(1<<0); PORTF &= ~(1<<0); }
26 { ___, K41, K42, ___, ___, K45, ___, ___, K48, K49, K4A, K4B, K4C } \ 26 { ___, K41, K42, ___, ___, K45, ___, ___, K48, K49, K4A, K4B, K4C } \
27} 27}
28 28
29#endif \ No newline at end of file 29#endif
diff --git a/keyboards/dk60/keymaps/default/keymap.c b/keyboards/dk60/keymaps/default/keymap.c
index d670f824d..e69ed9821 100644
--- a/keyboards/dk60/keymaps/default/keymap.c
+++ b/keyboards/dk60/keymaps/default/keymap.c
@@ -49,4 +49,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
49 ______, KC_MPRV,KC_MPLY,KC_MNXT,______, ______, KC_PPLS,KC_PMNS,KC_END, KC_PGDN, KC_DOWN, ______, ______, \ 49 ______, KC_MPRV,KC_MPLY,KC_MNXT,______, ______, KC_PPLS,KC_PMNS,KC_END, KC_PGDN, KC_DOWN, ______, ______, \
50 ______, ______, ______, KC_MSTP, ______ \ 50 ______, ______, ______, KC_MSTP, ______ \
51 ) 51 )
52}; \ No newline at end of file 52};
diff --git a/keyboards/dk60/rules.mk b/keyboards/dk60/rules.mk
index 66e9179ef..36c6bed17 100644
--- a/keyboards/dk60/rules.mk
+++ b/keyboards/dk60/rules.mk
@@ -8,13 +8,14 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
8BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) 8BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
9MOUSEKEY_ENABLE ?= no # Mouse keys(+4700) 9MOUSEKEY_ENABLE ?= no # Mouse keys(+4700)
10EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) 10EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
11CONSOLE_ENABLE ?= yes # Console for debug(+400) 11# CONSOLE_ENABLE ?= yes # Console for debug(+400)
12COMMAND_ENABLE ?= yes # Commands for debug and configuration 12# COMMAND_ENABLE ?= yes # Commands for debug and configuration
13KEYBOARD_LOCK_ENABLE ?= yes # Allow locking of keyboard via magic key
13NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 14NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
14RGBLIGHT_ENABLE ?= no # Enable keyboard underlight functionality (+4870) 15RGBLIGHT_ENABLE ?= no # Enable keyboard underlight functionality (+4870)
15BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality (+1150) 16BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality (+1150)
16MIDI_ENABLE ?= no # MIDI controls 17MIDI_ENABLE ?= no # MIDI controls
17AUDIO_ENABLE ?= no 18AUDIO_ENABLE ?= no
18UNICODE_ENABLE ?= no # Unicode 19UNICODE_ENABLE ?= yes # Unicode
19BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID 20BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
20SLEEP_LED_ENABLE ?= yes \ No newline at end of file 21SLEEP_LED_ENABLE ?= yes