X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=keyboard%2Fplanck%2Fmatrix.c;h=e3926caecee9ccb4900b1c7cf27f05b9d9c0c890;hb=65680819df13585a563296f008be1a4b0ee8045a;hp=ca59f7c73b83ea24ef2295d79534de389dae94cd;hpb=d6f2f878f90ce033a2495aa9ad82cfa1578429b9;p=qmk_firmware.git diff --git a/keyboard/planck/matrix.c b/keyboard/planck/matrix.c index ca59f7c73..e3926caec 100644 --- a/keyboard/planck/matrix.c +++ b/keyboard/planck/matrix.c @@ -27,6 +27,7 @@ along with this program. If not, see . #include "debug.h" #include "util.h" #include "matrix.h" +#include "backlight.h" // TODO fix this dependency #ifndef DEBOUNCE @@ -57,6 +58,13 @@ uint8_t matrix_cols(void) void matrix_init(void) { + // To use PORTF disable JTAG with writing JTD bit twice within four cycles. + MCUCR |= (1<