summaryrefslogtreecommitdiff
path: root/keyboards/adm42
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-23 09:20:23 +1100
committerGitHub <noreply@github.com>2023-02-23 09:20:23 +1100
commit3bf01bb9ed202b14f78105db2aa2a75d01fc4323 (patch)
treee492f428742358d7e75a228314d92b818ee0370d /keyboards/adm42
parent7f805cc7799deb0ca75f751cebd32c6640058af9 (diff)
Move QMK LUFA bootloader config to data driven (#19879)
Diffstat (limited to 'keyboards/adm42')
-rw-r--r--keyboards/adm42/rev4/config.h2
-rw-r--r--keyboards/adm42/rev4/keymaps/default/keymap.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/keyboards/adm42/rev4/config.h b/keyboards/adm42/rev4/config.h
index c03603b011..fa2bcb3e43 100644
--- a/keyboards/adm42/rev4/config.h
+++ b/keyboards/adm42/rev4/config.h
@@ -19,7 +19,7 @@
#define MATRIX_COL_PINS { C6, B6, B5, B4, D7, D6, F0, F1, F4, F5, F6, F7 }
#define MATRIX_ROW_PINS { C7, D5, D3, D2 }
-#define QMK_LED E6
+#define ADM42_LED E6
#define RGB_DI_PIN B7
diff --git a/keyboards/adm42/rev4/keymaps/default/keymap.c b/keyboards/adm42/rev4/keymaps/default/keymap.c
index d066445025..12e4e85a4a 100644
--- a/keyboards/adm42/rev4/keymaps/default/keymap.c
+++ b/keyboards/adm42/rev4/keymaps/default/keymap.c
@@ -174,7 +174,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case REFLASH:
eeconfig_init();
eeconfig_update_rgb_matrix_default();
- writePinLow(QMK_LED);
+ writePinLow(ADM42_LED);
reset_keyboard();
return false;
@@ -184,21 +184,21 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
void keyboard_pre_init_kb(void) {
- setPinOutput(QMK_LED);
- writePinHigh(QMK_LED);
+ setPinOutput(ADM42_LED);
+ writePinHigh(ADM42_LED);
}
void keyboard_post_init_kb(void) {
debug_enable = true;
debug_matrix = false;
debug_keyboard = false;
- writePinHigh(QMK_LED);
+ writePinHigh(ADM42_LED);
}
void suspend_power_down_kb(void) {
- writePinLow(QMK_LED);
+ writePinLow(ADM42_LED);
}
void suspend_wakeup_init_kb(void) {
- writePinHigh(QMK_LED);
+ writePinHigh(ADM42_LED);
}