Added locklights support
[jackhill/qmk/firmware.git] / keyboards / xwhatsit / ibm / 3277_66key / xwhatsit_rev4 / config.h
index 1fff4ca..a6f09b1 100644 (file)
@@ -286,4 +286,25 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //#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"