summaryrefslogtreecommitdiffstats
path: root/keyboards/knops/mini/keymaps/default-gsm-newbs
diff options
context:
space:
mode:
authorDasky <32983009+daskygit@users.noreply.github.com>2021-08-04 20:10:31 +0100
committerGitHub <noreply@github.com>2021-08-04 12:10:31 -0700
commit3917fd56395ca7e8b9c830d64e6943b644df5735 (patch)
treec2c6364f6a412137d55f957a1305640f60eeb572 /keyboards/knops/mini/keymaps/default-gsm-newbs
parent3568eafd6564fe74264cfedd20cba47a4566eb26 (diff)
[Keyboard] Fix knops keymaps (#13872)
Diffstat (limited to 'keyboards/knops/mini/keymaps/default-gsm-newbs')
-rw-r--r--keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c b/keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c
index 4ac904dc75..3851719f19 100644
--- a/keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c
+++ b/keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c
@@ -203,27 +203,7 @@ void set_layer_led(int layerId) {
}
}
-void matrix_init_user(void) {
- led_init_ports_user();
-
- PORTB |= (1 << 7);
- DDRB &= ~(1<<7);
-
- PORTD |= (1<<7);
- PORTC |= (1<<6);
- PORTC |= (1<<7);
- PORTD |= (1<<4);
- PORTE |= (1<<6);
- PORTB |= (1<<4);
- PORTD |= (1<<6);
-
- set_layer_led(0);
-}
-
-void matrix_scan_user(void) {
-}
-
-void led_init_ports_user() {
+void led_init_ports_user(void) {
// led voor switch #1
DDRD |= (1<<7);
PORTD &= ~(1<<7);
@@ -276,6 +256,26 @@ void led_init_ports_user() {
//led_set_layer(0);
}
+void matrix_init_user(void) {
+ led_init_ports_user();
+
+ PORTB |= (1 << 7);
+ DDRB &= ~(1<<7);
+
+ PORTD |= (1<<7);
+ PORTC |= (1<<6);
+ PORTC |= (1<<7);
+ PORTD |= (1<<4);
+ PORTE |= (1<<6);
+ PORTB |= (1<<4);
+ PORTD |= (1<<6);
+
+ set_layer_led(0);
+}
+
+void matrix_scan_user(void) {
+}
+
void led_set_user(uint8_t usb_led) {
if (usb_led & (1 << USB_LED_NUM_LOCK)) {