summaryrefslogtreecommitdiff
path: root/keyboards/matrix/noah
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/matrix/noah')
-rw-r--r--keyboards/matrix/noah/config.h1
-rw-r--r--keyboards/matrix/noah/info.json1
-rw-r--r--keyboards/matrix/noah/keymaps/blockader/keymap.c4
-rw-r--r--keyboards/matrix/noah/matrix.c8
-rw-r--r--keyboards/matrix/noah/rules.mk2
5 files changed, 9 insertions, 7 deletions
diff --git a/keyboards/matrix/noah/config.h b/keyboards/matrix/noah/config.h
index 9222c1cad9..a5688556f2 100644
--- a/keyboards/matrix/noah/config.h
+++ b/keyboards/matrix/noah/config.h
@@ -15,7 +15,6 @@
#define MATRIX_COL_PINS { C15, B10, B7, B6, B5, B4, A15, A10, A9, A8, B15, B14, B13, B12, B2}
#define DIODE_DIRECTION COL2ROW
-#define DEBOUNCE 5
// i2c setting
#define I2C1_SCL_PIN B8
diff --git a/keyboards/matrix/noah/info.json b/keyboards/matrix/noah/info.json
index 5a4477931b..9251760aa2 100644
--- a/keyboards/matrix/noah/info.json
+++ b/keyboards/matrix/noah/info.json
@@ -8,6 +8,7 @@
"pid": "0x0065",
"device_version": "0.0.1"
},
+ "community_layouts": ["65_iso_blocker"],
"layouts": {
"LAYOUT_default": {
"layout": [
diff --git a/keyboards/matrix/noah/keymaps/blockader/keymap.c b/keyboards/matrix/noah/keymaps/blockader/keymap.c
index b6d9a9acc3..b6caf43f91 100644
--- a/keyboards/matrix/noah/keymaps/blockader/keymap.c
+++ b/keyboards/matrix/noah/keymaps/blockader/keymap.c
@@ -32,7 +32,7 @@ enum{
DANCE_PGUP_TOP,
};
-qk_tap_dance_action_t tap_dance_actions[] = {
+tap_dance_action_t tap_dance_actions[] = {
[DANCE_PGDN_BOTTOM] = ACTION_TAP_DANCE_DOUBLE(KC_PGDN, LGUI(KC_DOWN)),
[DANCE_PGUP_TOP] = ACTION_TAP_DANCE_DOUBLE(KC_PGUP, LGUI(KC_UP)),
};
@@ -645,7 +645,7 @@ bool process_record_user(uint16_t key, keyrecord_t* record) {
return handle_common_key(key, record);
}
-void keyboard_post_init_user() {
+void keyboard_post_init_user(void) {
rgblight_disable_noeeprom();
rgb_matrix_disable();
common_layer_data.back = false;
diff --git a/keyboards/matrix/noah/matrix.c b/keyboards/matrix/noah/matrix.c
index 17f7a2fb62..90e7006b78 100644
--- a/keyboards/matrix/noah/matrix.c
+++ b/keyboards/matrix/noah/matrix.c
@@ -13,6 +13,10 @@
#include "print.h"
#include "matrix.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
/**
*
* Row pins are input with internal pull-down.
@@ -81,7 +85,7 @@ void matrix_init(void)
memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t));
memset(matrix_debouncing, 0, MATRIX_COLS * sizeof(matrix_row_t));
- matrix_init_quantum();
+ matrix_init_kb();
}
uint8_t matrix_scan(void)
@@ -152,7 +156,7 @@ uint8_t matrix_scan(void)
debouncing = false;
}
- matrix_scan_quantum();
+ matrix_scan_kb();
return 1;
}
diff --git a/keyboards/matrix/noah/rules.mk b/keyboards/matrix/noah/rules.mk
index 7971d628d6..616574f4ae 100644
--- a/keyboards/matrix/noah/rules.mk
+++ b/keyboards/matrix/noah/rules.mk
@@ -33,5 +33,3 @@ RGBLIGHT_CUSTOM_DRIVER = yes
CUSTOM_MATRIX = yes
# project specific files
SRC += ws2812.c matrix.c
-
-LAYOUTS = 65_iso_blocker