[Keyboard] Fix knops keymaps (#13872)

This commit is contained in:
Dasky 2021-08-04 20:10:31 +01:00 committed by GitHub
parent 3568eafd65
commit 3917fd5639
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 82 additions and 82 deletions

View file

@ -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)) {

View file

@ -129,27 +129,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);
@ -202,6 +182,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)) {

View file

@ -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);
DDRB &= ~(1<<7);

View file

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

View file

@ -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
DDRD |= (1 << 6);