X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=keyboard%2Fplanck%2Fmatrix.c;h=e3926caecee9ccb4900b1c7cf27f05b9d9c0c890;hb=65680819df13585a563296f008be1a4b0ee8045a;hp=38d35e3e07d50dd164e8dbbbbe26991441d8a6ec;hpb=a54da1b92663606f5e5c18bc1eaec30c06847da1;p=qmk_firmware.git diff --git a/keyboard/planck/matrix.c b/keyboard/planck/matrix.c index 38d35e3e0..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<