Added locklights support
[jackhill/qmk/firmware.git] / keyboards / xwhatsit / ibm / 3276_3278_75key / through_hole / config.h
index 7f71144..d97e55e 100644 (file)
@@ -253,7 +253,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 //#define CONTROLLER_IS_XWHATSIT_MODEL_F_OR_WCASS_MODEL_F
 //#define CONTROLLER_IS_XWHATSIT_BEAMSPRING_REV_4
-#define CONTROLLER_IS_THROUGHT_HOLE_BEAMSPRING
+#define CONTROLLER_IS_THROUGH_HOLE_BEAMSPRING
+//#define CONTROLLER_IS_THROUGH_HOLE_MODEL_F
 
 #define CAPSENSE_KEYBOARD_SETTLE_TIME_US 8
 #define CAPSENSE_DAC_SETTLE_TIME_US 8
@@ -273,3 +274,38 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #endif
 
 #define CAPSENSE_KEYMAP_COL_TO_PHYSICAL_COL(col) ((col) + 3)
+
+// By default we set up for support of xwhatsit's solenoid driver board.
+// Comment out USING_SOLENOID_ENABLE_PIN if you don't have an enable pin:
+#define USING_SOLENOID_ENABLE_PIN D3
+// Change this if you are using a different pin for the solenoid:
+#define SOLENOID_PIN D2
+// If you are not using a solenoid then commend out the above, and also in rules.mk, remove "HAPTIC_ENABLE += SOLENOID"
+// You can also tune the following for your solenoid:
+//#define SOLENOID_DEFAULT_DWELL 12
+//#define SOLENOID_MIN_DWELL 4
+//#define SOLENOID_MAX_DWELL 100
+
+// If the lock lights are not used, then please don't define the below pins,
+// or leave them set as unused pins:
+
+// The following definitions are compatible with the Model F SMD controllers
+// from here: https://deskthority.net/viewtopic.php?f=7&t=24597 supporting the
+// AT lock lights header
+#define LED_NUM_LOCK_PIN D7
+#define LED_CAPS_LOCK_PIN E6
+#define LED_SCROLL_LOCK_PIN B6
+
+// The following definitions match the lock lights as used by the original
+// xwhatsit firmware, but enabling all three of these is not compatible with
+// solenoid support
+//#define LED_NUM_LOCK_PIN E6
+//#define LED_CAPS_LOCK_PIN D2
+//#define LED_SCROLL_LOCK_PIN D7
+
+// Uncomment below if the leds are on when the pin is driving zero:
+//#define LED_NUM_LOCK_ACTIVE_LOW
+//#define LED_CAPS_LOCK_ACTIVE_LOW
+//#define LED_SCROLL_LOCK_ACTIVE_LOW
+
+#include "../../../post_config.h"