diff options
Diffstat (limited to 'keyboards/dp60')
-rw-r--r-- | keyboards/dp60/config.h | 4 | ||||
-rw-r--r-- | keyboards/dp60/info.json | 3 | ||||
-rw-r--r-- | keyboards/dp60/keymaps/indicator/config.h | 1 | ||||
-rw-r--r-- | keyboards/dp60/matrix.c | 10 | ||||
-rw-r--r-- | keyboards/dp60/rules.mk | 8 |
5 files changed, 10 insertions, 16 deletions
diff --git a/keyboards/dp60/config.h b/keyboards/dp60/config.h index 9105e1ffb9..16df72781b 100644 --- a/keyboards/dp60/config.h +++ b/keyboards/dp60/config.h @@ -15,16 +15,12 @@ */ #pragma once -#include "config_common.h" /* key matrix size */ #define MATRIX_ROWS 5 #define MATRIX_COLS 15 #define DIODE_DIRECTION COL2ROW -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - /* * Feature disable options * These options are also useful to firmware size reduction. diff --git a/keyboards/dp60/info.json b/keyboards/dp60/info.json index 783999f8ed..605c66bb0d 100644 --- a/keyboards/dp60/info.json +++ b/keyboards/dp60/info.json @@ -8,10 +8,13 @@ "pid": "0x00BE", "device_version": "0.0.1" }, + "processor": "atmega32u4", + "bootloader": "atmel-dfu", "layout_aliases": { "LAYOUT_60_wkl": "LAYOUT_60_ansi_tsangan_split_rshift", "LAYOUT_60_wkl_split_bs": "LAYOUT_60_tsangan_hhkb" }, + "community_layouts": ["60_ansi", "60_hhkb", "60_iso", "60_ansi_split_bs_rshift"], "layouts": { "LAYOUT_60_ansi_tsangan_split_rshift": { "layout": [ diff --git a/keyboards/dp60/keymaps/indicator/config.h b/keyboards/dp60/keymaps/indicator/config.h index 0476faca94..c7b52b27a5 100644 --- a/keyboards/dp60/keymaps/indicator/config.h +++ b/keyboards/dp60/keymaps/indicator/config.h @@ -15,7 +15,6 @@ */ #pragma once -#include "config_common.h" #define RGB_INDICATOR_NUM 8 #undef RGBLED_NUM diff --git a/keyboards/dp60/matrix.c b/keyboards/dp60/matrix.c index a9974757dd..e32c9a58f9 100644 --- a/keyboards/dp60/matrix.c +++ b/keyboards/dp60/matrix.c @@ -15,6 +15,10 @@ */ #include "quantum.h" +#ifndef DEBOUNCE +# define DEBOUNCE 5 +#endif + static uint8_t debouncing = DEBOUNCE; static matrix_row_t matrix[MATRIX_ROWS]; @@ -60,7 +64,7 @@ void matrix_init(void) matrix_debouncing[i] = 0; } - matrix_init_quantum(); + matrix_init_kb(); } uint8_t matrix_scan(void) @@ -92,7 +96,7 @@ uint8_t matrix_scan(void) } } - matrix_scan_quantum(); + matrix_scan_kb(); return 1; } @@ -123,7 +127,7 @@ static void init_rows(void) setPinInputHigh(D4); } -static uint8_t read_rows() +static uint8_t read_rows(void) { return ((readPin(E6) ? 0 : (1 << 0)) | (readPin(F6) ? 0 : (1 << 1)) | diff --git a/keyboards/dp60/rules.mk b/keyboards/dp60/rules.mk index 8acc7d85d4..491e8e34a7 100644 --- a/keyboards/dp60/rules.mk +++ b/keyboards/dp60/rules.mk @@ -1,9 +1,3 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = atmel-dfu - # Build Options # change yes to no to disable # @@ -19,7 +13,5 @@ RGBLIGHT_ENABLE = no # Use RGB underglow light RGB_MATRIX_ENABLE = yes RGB_MATRIX_DRIVER = IS31FL3731 # Use RGB matrix -LAYOUTS = 60_ansi 60_hhkb 60_iso 60_ansi_split_bs_rshift - CUSTOM_MATRIX = yes SRC += matrix.c |