diff --git a/keyboards/handwired/daktil/daktil.c b/keyboards/handwired/daktil/daktil.c index 5d4f93be22..1c200b6fe6 100644 --- a/keyboards/handwired/daktil/daktil.c +++ b/keyboards/handwired/daktil/daktil.c @@ -6,8 +6,12 @@ bool i2c_initialized = 0; uint8_t mcp23018_status = 0x20; void matrix_init_kb(void) { - // DDRB &= ~(1<<4); // set B(4) as input - // PORTB &= ~(1<<4); // set B(4) internal pull-up disabled + /* + DDRB &= ~(1<<4); // set B(4) as input <- wtf to sploh ne gre z naso tipkovnico + PORTB &= ~(1<<4); // set B(4) internal pull-up disabled + */ + DDRF &= ~(1<<4); // <- tak pa ze ja! + PORTF &= ~(1<<4); // unused pins - C7, D4, D5, D7, E6 // set as input with internal pull-up enabled diff --git a/keyboards/handwired/daktil/daktil.h b/keyboards/handwired/daktil/daktil.h index aa573ebd2a..ffcd3a3cd8 100644 --- a/keyboards/handwired/daktil/daktil.h +++ b/keyboards/handwired/daktil/daktil.h @@ -1,5 +1,5 @@ -#ifndef DACTYL_H -#define DACTYL_H +#ifndef DAKTIL_H +#define DAKTIL_H #include "quantum.h" #include diff --git a/keyboards/handwired/daktil/keymaps/dvorak/keymap.c b/keyboards/handwired/daktil/keymaps/dvorak/keymap.c index a0b98b993d..20c31fd98e 100644 --- a/keyboards/handwired/daktil/keymaps/dvorak/keymap.c +++ b/keyboards/handwired/daktil/keymaps/dvorak/keymap.c @@ -1,4 +1,4 @@ -#include "dactyl.h" +#include "daktil.h" #include "debug.h" #include "action_layer.h" #include "version.h" diff --git a/keyboards/handwired/daktil/keymaps/erincalling/keymap.c b/keyboards/handwired/daktil/keymaps/erincalling/keymap.c index d22d138a00..714cca6f1f 100644 --- a/keyboards/handwired/daktil/keymaps/erincalling/keymap.c +++ b/keyboards/handwired/daktil/keymaps/erincalling/keymap.c @@ -1,4 +1,4 @@ -#include "dactyl.h" +#include "daktil.h" #include "debug.h" #include "action_layer.h" #include "version.h" diff --git a/keyboards/handwired/daktil/matrix.c b/keyboards/handwired/daktil/matrix.c index 70ac3f0cbb..cca5188750 100644 --- a/keyboards/handwired/daktil/matrix.c +++ b/keyboards/handwired/daktil/matrix.c @@ -316,12 +316,12 @@ static matrix_row_t read_cols(uint8_t row) (PINF&(1<<6) ? 0 : (1<<4)) | (PINF&(1<<7) ? 0 : (1<<5)) ; */ - (PINB&(1<<4) ? 0 : (1<<0)) | - (PINB&(1<<5) ? 0 : (1<<1)) | + (PINB&(1<<5) ? 0 : (1<<0)) | + (PINB&(1<<4) ? 0 : (1<<1)) | (PINE&(1<<6) ? 0 : (1<<2)) | - (PIND&(1<<4) ? 0 : (1<<3)) | - (PIND&(1<<7) ? 0 : (1<<4)) | - (PINC&(1<<6) ? 0 : (1<<5)) ; + (PIND&(1<<7) ? 0 : (1<<3)) | + (PINC&(1<<6) ? 0 : (1<<4)) | + (PIND&(1<<4) ? 0 : (1<<5)) ; } }