overnumpad controller: Add support for turning off solenoid enable in low power. (#15021)
parent
b87b402ea5
commit
2326c8f747
|
@ -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_NUM_LOCK_PIN C12
|
||||
|
|
|
@ -18,10 +18,6 @@
|
|||
|
||||
void keyboard_post_init_kb(void)
|
||||
{
|
||||
// Solenoid enable:
|
||||
setPinOutput(C13);
|
||||
writePin(C13, 1);
|
||||
|
||||
//debug_enable=true;
|
||||
//debug_matrix=true;
|
||||
}
|
||||
|
|
|
@ -63,8 +63,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_NUM_LOCK_PIN C12
|
||||
|
|
|
@ -18,10 +18,6 @@
|
|||
|
||||
void keyboard_post_init_kb(void)
|
||||
{
|
||||
// Solenoid enable:
|
||||
setPinOutput(C13);
|
||||
writePin(C13, 1);
|
||||
|
||||
//debug_enable=true;
|
||||
//debug_matrix=true;
|
||||
}
|
||||
|
|
|
@ -63,8 +63,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_NUM_LOCK_PIN C12
|
||||
|
|
|
@ -18,10 +18,6 @@
|
|||
|
||||
void keyboard_post_init_kb(void)
|
||||
{
|
||||
// Solenoid enable:
|
||||
setPinOutput(C13);
|
||||
writePin(C13, 1);
|
||||
|
||||
//debug_enable=true;
|
||||
//debug_matrix=true;
|
||||
}
|
||||
|
|
|
@ -63,8 +63,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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue