]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Updated files to better support sockets version (#2255)
authorMikkel Jeppesen <2756925+Duckle29@users.noreply.github.com>
Fri, 12 Jan 2018 17:57:48 +0000 (18:57 +0100)
committerJack Humbert <jack.humb@gmail.com>
Fri, 12 Jan 2018 17:57:48 +0000 (12:57 -0500)
keyboards/lets_split/matrix.c
keyboards/lets_split/sockets/config.h
keyboards/lets_split/sockets/rules.mk
keyboards/lets_split/sockets/sockets.h

index 47cda6fa806fcbb562fd099120a0df4013f0833f..77def4212b2021a71f8e3fe2e30bf6b0c4f7ee78 100644 (file)
@@ -124,6 +124,12 @@ uint8_t matrix_cols(void)
 
 void matrix_init(void)
 {
+#ifdef DISABLE_JTAG
+  // JTAG disable for PORT F. write JTD bit twice within four cycles.
+  MCUCR |= (1<<JTD);
+  MCUCR |= (1<<JTD);
+#endif
+
     debug_enable = true;
     debug_matrix = true;
     debug_mouse = true;
index 70ebcb8c231fbd85fa495f05e5f9945b10e8fa85..3ce8f2c211f57bc066f6dbcbc8c42b5da5a9e880 100644 (file)
@@ -37,7 +37,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 // wiring of each half
 #define MATRIX_ROW_PINS { B1, B5, E6, B4 }
 #define MATRIX_COL_PINS { F4, F7, D7, B3, B2, B6}
-// #define MATRIX_COL_PINS { B6, B2, B3, C6, F7, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order
+// #define MATRIX_COL_PINS { B6, B2, B3, D7, F7, F4} //uncomment this line and comment line above if you need to reverse left-to-right key order
 
 /* define if matrix has ghost */
 //#define MATRIX_HAS_GHOST
@@ -59,8 +59,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 )
 
 /* ws2812 RGB LED */
-#define RGB_DI_PIN D4
-#define RGBLIGHT_TIMER 
+#define RGB_DI_PIN D1
+#define RGBLIGHT_TIMER
 #define RGBLED_NUM 12    // Number of LEDs
 #define ws2812_PORTREG  PORTD
 #define ws2812_DDRREG   DDRD
index a975e56f16a6ac65f219553a68b4a06c81887a98..e14d18d8de40f7e80aa0d254ef3c6e87e6fd60da 100644 (file)
@@ -1,3 +1,3 @@
 BACKLIGHT_ENABLE = no
 AUDIO_ENABLE = yes
-RGBLIGHT_ENABLE = no
\ No newline at end of file
+RGBLIGHT_ENABLE = yes #Don't enable this along with I2C
index 16b93b3d8aca55192f339cf210f7c7580454e0d1..05cc78f9e8765e629d4d593214a68f2021c9e286 100644 (file)
@@ -1,5 +1,6 @@
-#ifndef REV2_H
-#define REV2_H
+#ifndef SOCKETS_H
+#define SOCKETS_H
+#define DISABLE_JTAG // The keyboard uses PF4 and PF7, which are used by JTAG.
 
 #include "lets_split.h"