[Keyboard] Fix knops keymaps (#13872)

xap
Dasky 4 years ago committed by GitHub
parent 3568eafd65
commit 3917fd5639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 42
      keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c
  2. 42
      keyboards/knops/mini/keymaps/default/keymap.c
  3. 2
      keyboards/knops/mini/keymaps/knops/keymap.c
  4. 2
      keyboards/knops/mini/keymaps/mverteuil/keymap.c
  5. 2
      keyboards/wilba_tech/rama_works_m6_a/keymaps/knops/keymap.c

@ -203,27 +203,7 @@ void set_layer_led(int layerId) {
} }
} }
void matrix_init_user(void) { void led_init_ports_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() {
// led voor switch #1 // led voor switch #1
DDRD |= (1<<7); DDRD |= (1<<7);
PORTD &= ~(1<<7); PORTD &= ~(1<<7);
@ -276,6 +256,26 @@ void led_init_ports_user() {
//led_set_layer(0); //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) { void led_set_user(uint8_t usb_led) {
if (usb_led & (1 << USB_LED_NUM_LOCK)) { if (usb_led & (1 << USB_LED_NUM_LOCK)) {

@ -129,27 +129,7 @@ void set_layer_led(int layerId) {
} }
} }
void matrix_init_user(void) { void led_init_ports_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() {
// led voor switch #1 // led voor switch #1
DDRD |= (1<<7); DDRD |= (1<<7);
PORTD &= ~(1<<7); PORTD &= ~(1<<7);
@ -202,6 +182,26 @@ void led_init_ports_user() {
//led_set_layer(0); //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) { void led_set_user(uint8_t usb_led) {
if (usb_led & (1 << USB_LED_NUM_LOCK)) { if (usb_led & (1 << USB_LED_NUM_LOCK)) {

@ -82,7 +82,7 @@ void set_led_state(int ledId, bool state) {
} }
} }
void led_init_ports_user() { void led_init_ports_user(void) {
PORTB |= (1 << 7); PORTB |= (1 << 7);
DDRB &= ~(1<<7); DDRB &= ~(1<<7);

@ -270,7 +270,7 @@ void led_set_layer(int layer) {
/* /*
* Prepare all LED ports for output * Prepare all LED ports for output
*/ */
void led_init_ports_user() { void led_init_ports_user(void) {
setPinOutput(D7); // Switch 1 LED setPinOutput(D7); // Switch 1 LED
setPinOutput(C6); // Switch 2 LED Pin1 setPinOutput(C6); // Switch 2 LED Pin1
setPinOutput(C7); // Switch 2 LED Pin2 setPinOutput(C7); // Switch 2 LED Pin2

@ -60,7 +60,7 @@ void set_led_state(int ledId, bool state)
} }
} }
void led_init_ports_user() void led_init_ports_user(void)
{ {
// Switch #1 // Switch #1
DDRD |= (1 << 6); DDRD |= (1 << 6);

Loading…
Cancel
Save