diff options
Diffstat (limited to 'keyboards/moon')
-rw-r--r-- | keyboards/moon/config.h | 4 | ||||
-rw-r--r-- | keyboards/moon/info.json | 3 | ||||
-rw-r--r-- | keyboards/moon/matrix.c | 8 | ||||
-rw-r--r-- | keyboards/moon/rules.mk | 9 |
4 files changed, 5 insertions, 19 deletions
diff --git a/keyboards/moon/config.h b/keyboards/moon/config.h index 361fc5ba9d..77225a4115 100644 --- a/keyboards/moon/config.h +++ b/keyboards/moon/config.h @@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once -#include "config_common.h" /* key matrix size */ #define MATRIX_ROWS 8 @@ -26,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define LED_CAPS_LOCK_PIN B5 #define LED_SCROLL_LOCK_PIN B6 -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - /* Backlight */ #define BACKLIGHT_PIN C6 #define BACKLIGHT_LEVELS 3 diff --git a/keyboards/moon/info.json b/keyboards/moon/info.json index 782f5b24e3..7bc7228cf9 100644 --- a/keyboards/moon/info.json +++ b/keyboards/moon/info.json @@ -8,6 +8,9 @@ "pid": "0xFCB8", "device_version": "0.0.1" }, + "processor": "atmega32u4", + "bootloader": "atmel-dfu", + "community_layouts": ["tkl_ansi", "tkl_iso"], "layouts": { "LAYOUT_all": { "layout": [ diff --git a/keyboards/moon/matrix.c b/keyboards/moon/matrix.c index 977338b2f6..bb46e1b576 100644 --- a/keyboards/moon/matrix.c +++ b/keyboards/moon/matrix.c @@ -91,10 +91,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. static matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values static matrix_row_t matrix[MATRIX_ROWS]; // debounced values -__attribute__((weak)) void matrix_init_quantum(void) { matrix_init_kb(); } - -__attribute__((weak)) void matrix_scan_quantum(void) { matrix_scan_kb(); } - __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); } __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); } @@ -191,7 +187,7 @@ void matrix_init(void) { debounce_init(MATRIX_ROWS); - matrix_init_quantum(); + matrix_init_kb(); } uint8_t matrix_scan(void) { @@ -203,7 +199,7 @@ uint8_t matrix_scan(void) { debounce(raw_matrix, matrix, MATRIX_ROWS, changed); - matrix_scan_quantum(); + matrix_scan_kb(); return (uint8_t)changed; } diff --git a/keyboards/moon/rules.mk b/keyboards/moon/rules.mk index b906a8df24..804580d1f9 100644 --- a/keyboards/moon/rules.mk +++ b/keyboards/moon/rules.mk @@ -1,9 +1,3 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = atmel-dfu - # Build Options # change yes to no to disable # @@ -23,6 +17,3 @@ CUSTOM_MATRIX = yes VPATH += drivers/gpio SRC += pca9555.c matrix.c QUANTUM_LIB_SRC += i2c_master.c - -# Supported layouts -LAYOUTS = tkl_ansi tkl_iso |