diff options
author | Purdea Andrei <andrei@purdea.ro> | 2021-11-02 11:49:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 20:49:23 +1100 |
commit | 2326c8f74778551febc68c5c1767755fc30e1388 (patch) | |
tree | 7a031b397e8873a57593c50f71313c502c0581f7 /keyboards/unicomp/spacesaver_m_pre_2013 | |
parent | b87b402ea529f814f1de70ef90b6756efeb054cc (diff) | |
download | qmk_firmware-2326c8f74778551febc68c5c1767755fc30e1388.tar.gz qmk_firmware-2326c8f74778551febc68c5c1767755fc30e1388.zip |
overnumpad controller: Add support for turning off solenoid enable in low power. (#15021)
Diffstat (limited to 'keyboards/unicomp/spacesaver_m_pre_2013')
-rw-r--r-- | keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/config.h | 2 | ||||
-rw-r--r-- | keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/overnumpad_1xb.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/config.h b/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/config.h index f3ce89431e..7bd5b224df 100644 --- a/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/config.h +++ b/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/config.h @@ -64,8 +64,10 @@ #define STM32_HSECLK 16000000 #define SOLENOID_PIN B5 +#define HAPTIC_ENABLE_PIN C13 #define SOLENOID_DEFAULT_DWELL 4 #define SOLENOID_MIN_DWELL 4 +#define HAPTIC_OFF_IN_LOW_POWER 1 #define NO_HAPTIC_MOD #define LED_CAPS_LOCK_PIN C12 diff --git a/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/overnumpad_1xb.c b/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/overnumpad_1xb.c index 5d91eae20e..b7e3fd9632 100644 --- a/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/overnumpad_1xb.c +++ b/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/overnumpad_1xb.c @@ -23,9 +23,6 @@ void keyboard_post_init_kb(void) setPinOutput(C11); // middle led, always off on Spacesaver M writePin(C11, 0); setPinOutput(C10); // right-most led, normally Scroll Lock, but on Spacesaver M indicates function layer - // Solenoid enable: - setPinOutput(C13); - writePin(C13, 1); //debug_enable=true; //debug_matrix=true; |