All model Fs: double the threshold offset used.
[jackhill/qmk/firmware.git] / keyboards / xwhatsit / brand_new_model_f / f62 / xwhatsit / config.h
index 937099c..6a1842f 100644 (file)
@@ -24,7 +24,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define PRODUCT_ID 0x0002
 #define DEVICE_VER 0x0001
 #define MANUFACTURER Tom Wong-Cornall/Ellipse/Purdea Andrei
-#define PRODUCT modelfkeyboards.com Brand New F62/F77 Model F Keybard by Model F Labs
+#define PRODUCT modelfkeyboards.com Brand New F62/F77 Model F Keyboard by Model F Labs
 #define DESCRIPTION QMK firmware for the modelfkeyboards.com reproduction of the IBM Model F keyboards using the original Xwhatsit model F controller PCB
 
 /* key matrix size */
@@ -254,7 +254,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_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
@@ -266,8 +267,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 // #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 12
+#define CAPSENSE_CAL_BINS 5
+#define CAPSENSE_CAL_THRESHOLD_OFFSET 24
 
 #if !CAPSENSE_CAL_ENABLED
 #define CAPSENSE_HARDCODED_THRESHOLD 142
@@ -285,3 +286,26 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //#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 match the lock lights as used by the original
+// xwhatsit firmware, but enabling all three of these is not compatible with
+// standard solenoid support, because B6 and B7 pins are already in use:
+//#define LED_NUM_LOCK_PIN B5
+//#define LED_CAPS_LOCK_PIN B6
+//#define LED_SCROLL_LOCK_PIN B4
+// Since solenoid support is enabled by default, the above lock light pin
+// assignments are disabled by default.
+// Instead the more common Num Lock and Caps Lock are assigned the following
+// way by default, and this can be used in combination with the solenoid:
+#define LED_NUM_LOCK_PIN B4
+#define LED_CAPS_LOCK_PIN B5
+
+// 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"