//#define CONTROLLER_IS_XWHATSIT_MODEL_F_OR_WCASS_MODEL_F
//#define CONTROLLER_IS_XWHATSIT_BEAMSPRING_REV_4
-#define CONTROLLER_IS_THROUGHT_HOLE_MODEL_F
+//#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
// #define CAPSENSE_CAL_DEBUG 0
#define CAPSENSE_CAL_INIT_REPS 16
#define CAPSENSE_CAL_EACHKEY_REPS 16
-#define CAPSENSE_CAL_BINS 3
-#define CAPSENSE_CAL_THRESHOLD_OFFSET 48
+#define CAPSENSE_CAL_BINS 5
+#define CAPSENSE_CAL_THRESHOLD_OFFSET 96
#if !CAPSENSE_CAL_ENABLED
#define CAPSENSE_HARDCODED_THRESHOLD 142
#endif
+#define CAPSENSE_KEYMAP_COL_TO_PHYSICAL_COL(col) (15-(col))
+
// 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
//#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"