浏览代码

[Keyboard] Fix diode and split keyboard configuration for 40percentclub/half_n_half (#5371)

zvecr 6 年之前
父节点
当前提交
99654c6e4f

+ 2 - 1
keyboards/40percentclub/half_n_half/config.h

@@ -46,12 +46,13 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define UNUSED_PINS
 
 /* COL2ROW, ROW2COL*/
-#define DIODE_DIRECTION ROW2COL
+#define DIODE_DIRECTION COL2ROW
 
 /*
  * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
  */
 #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
+#define USE_SERIAL
 
 // #define BACKLIGHT_PIN B7
 // #define BACKLIGHT_BREATHING

+ 4 - 0
keyboards/40percentclub/half_n_half/half_n_half.h

@@ -42,3 +42,7 @@
     { R26, R25, R24, R23, R22, R21, R20 }, \
     { ___, ___, ___, ___, R32, ___, ___ }  \
 }
+
+#ifdef USE_I2C
+  #error "I2C not Supported"
+#endif

+ 3 - 0
keyboards/40percentclub/half_n_half/rules.mk

@@ -79,3 +79,6 @@ BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
 AUDIO_ENABLE = no           # Audio output on port C6
 FAUXCLICKY_ENABLE = no      # Use buzzer to emulate clicky switches
 HD44780_ENABLE = no 		# Enable support for HD44780 based LCDs (+400)
+
+# Enable generic behavior for split boards
+SPLIT_KEYBOARD = yes