summaryrefslogtreecommitdiff
path: root/keyboards/ktec/ergodone/ergodone.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ktec/ergodone/ergodone.c')
-rw-r--r--keyboards/ktec/ergodone/ergodone.c57
1 files changed, 7 insertions, 50 deletions
diff --git a/keyboards/ktec/ergodone/ergodone.c b/keyboards/ktec/ergodone/ergodone.c
index e0579408e5..53ff8c9844 100644
--- a/keyboards/ktec/ergodone/ergodone.c
+++ b/keyboards/ktec/ergodone/ergodone.c
@@ -1,54 +1,11 @@
-#include "ergodone.h"
-
-extern inline void ergodox_board_led_on(void);
-extern inline void ergodox_right_led_1_on(void);
-extern inline void ergodox_right_led_2_on(void);
-extern inline void ergodox_right_led_3_on(void);
-extern inline void ergodox_right_led_on(uint8_t led);
-
-extern inline void ergodox_board_led_off(void);
-extern inline void ergodox_right_led_1_off(void);
-extern inline void ergodox_right_led_2_off(void);
-extern inline void ergodox_right_led_3_off(void);
-extern inline void ergodox_right_led_off(uint8_t led);
-
-extern inline void ergodox_led_all_off(void);
+// Copyright 2022 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
-void ergodox_led_init(void);
-void ergodox_blink_all_leds(void);
-
-void matrix_init_kb(void) {
- ergodox_led_init();
- ergodox_blink_all_leds();
- matrix_init_user();
-}
+#include "ergodone.h"
-void ergodox_led_init(void)
- {
- DDRB |= (1<<PB5 | 1<<PB6 | 1<<PB3);
- PORTB &= ~(1<<PB5 | 1<<PB6 | 1<<PB3);
- DDRB |= (1<<PB0);
- PORTB |= (1<<PB0);
- DDRD |= (1<<PB5);
- PORTD |= (1<<PB5);
-}
+#include "ergodox_compat.h"
+void keyboard_post_init_kb(void) {
+ ergodox_blink_all_leds();
-void ergodox_blink_all_leds(void)
-{
- ergodox_led_all_off();
- ergodox_led_all_set(LED_BRIGHTNESS_HI);
- ergodox_right_led_1_on();
- _delay_ms(50);
- ergodox_right_led_2_on();
- _delay_ms(50);
- ergodox_right_led_3_on();
- _delay_ms(50);
- ergodox_right_led_1_off();
- _delay_ms(50);
- ergodox_right_led_2_off();
- _delay_ms(50);
- ergodox_right_led_3_off();
- //ergodox_led_all_on();
- //_delay_ms(333);
- ergodox_led_all_off();
+ keyboard_post_init_user();
}