1
0
Fork 0

overnumpad controller: Add support for turning off solenoid enable in low power. (#15021)

This commit is contained in:
Purdea Andrei 2021-11-02 11:49:23 +02:00 committed by GitHub
parent b87b402ea5
commit 2326c8f747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 10 additions and 18 deletions

View file

@ -64,8 +64,10 @@
#define STM32_HSECLK 16000000 #define STM32_HSECLK 16000000
#define SOLENOID_PIN B5 #define SOLENOID_PIN B5
#define HAPTIC_ENABLE_PIN C13
#define SOLENOID_DEFAULT_DWELL 4 #define SOLENOID_DEFAULT_DWELL 4
#define SOLENOID_MIN_DWELL 4 #define SOLENOID_MIN_DWELL 4
#define HAPTIC_OFF_IN_LOW_POWER 1
#define NO_HAPTIC_MOD #define NO_HAPTIC_MOD
#define LED_NUM_LOCK_PIN C12 #define LED_NUM_LOCK_PIN C12

View file

@ -18,10 +18,6 @@
void keyboard_post_init_kb(void) void keyboard_post_init_kb(void)
{ {
// Solenoid enable:
setPinOutput(C13);
writePin(C13, 1);
//debug_enable=true; //debug_enable=true;
//debug_matrix=true; //debug_matrix=true;
} }

View file

@ -63,8 +63,10 @@
#define STM32_HSECLK 16000000 #define STM32_HSECLK 16000000
#define SOLENOID_PIN B5 #define SOLENOID_PIN B5
#define HAPTIC_ENABLE_PIN C13
#define SOLENOID_DEFAULT_DWELL 4 #define SOLENOID_DEFAULT_DWELL 4
#define SOLENOID_MIN_DWELL 4 #define SOLENOID_MIN_DWELL 4
#define HAPTIC_OFF_IN_LOW_POWER 1
#define NO_HAPTIC_MOD #define NO_HAPTIC_MOD
#define LED_NUM_LOCK_PIN C12 #define LED_NUM_LOCK_PIN C12

View file

@ -18,10 +18,6 @@
void keyboard_post_init_kb(void) void keyboard_post_init_kb(void)
{ {
// Solenoid enable:
setPinOutput(C13);
writePin(C13, 1);
//debug_enable=true; //debug_enable=true;
//debug_matrix=true; //debug_matrix=true;
} }

View file

@ -63,8 +63,10 @@
#define STM32_HSECLK 16000000 #define STM32_HSECLK 16000000
#define SOLENOID_PIN B5 #define SOLENOID_PIN B5
#define HAPTIC_ENABLE_PIN C13
#define SOLENOID_DEFAULT_DWELL 4 #define SOLENOID_DEFAULT_DWELL 4
#define SOLENOID_MIN_DWELL 4 #define SOLENOID_MIN_DWELL 4
#define HAPTIC_OFF_IN_LOW_POWER 1
#define NO_HAPTIC_MOD #define NO_HAPTIC_MOD
#define LED_NUM_LOCK_PIN C12 #define LED_NUM_LOCK_PIN C12

View file

@ -18,10 +18,6 @@
void keyboard_post_init_kb(void) void keyboard_post_init_kb(void)
{ {
// Solenoid enable:
setPinOutput(C13);
writePin(C13, 1);
//debug_enable=true; //debug_enable=true;
//debug_matrix=true; //debug_matrix=true;
} }

View file

@ -63,8 +63,10 @@
#define STM32_HSECLK 16000000 #define STM32_HSECLK 16000000
#define SOLENOID_PIN B5 #define SOLENOID_PIN B5
#define HAPTIC_ENABLE_PIN C13
#define SOLENOID_DEFAULT_DWELL 4 #define SOLENOID_DEFAULT_DWELL 4
#define SOLENOID_MIN_DWELL 4 #define SOLENOID_MIN_DWELL 4
#define HAPTIC_OFF_IN_LOW_POWER 1
#define NO_HAPTIC_MOD #define NO_HAPTIC_MOD
#define LED_CAPS_LOCK_PIN C12 #define LED_CAPS_LOCK_PIN C12

View file

@ -23,9 +23,6 @@ void keyboard_post_init_kb(void)
setPinOutput(C11); // middle led, always off on Spacesaver M setPinOutput(C11); // middle led, always off on Spacesaver M
writePin(C11, 0); writePin(C11, 0);
setPinOutput(C10); // right-most led, normally Scroll Lock, but on Spacesaver M indicates function layer 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_enable=true;
//debug_matrix=true; //debug_matrix=true;

View file

@ -64,8 +64,10 @@
#define STM32_HSECLK 16000000 #define STM32_HSECLK 16000000
#define SOLENOID_PIN B5 #define SOLENOID_PIN B5
#define HAPTIC_ENABLE_PIN C13
#define SOLENOID_DEFAULT_DWELL 4 #define SOLENOID_DEFAULT_DWELL 4
#define SOLENOID_MIN_DWELL 4 #define SOLENOID_MIN_DWELL 4
#define HAPTIC_OFF_IN_LOW_POWER 1
#define NO_HAPTIC_MOD #define NO_HAPTIC_MOD
#define LED_CAPS_LOCK_PIN C12 #define LED_CAPS_LOCK_PIN C12

View file

@ -23,9 +23,6 @@ void keyboard_post_init_kb(void)
setPinOutput(C11); // middle led, always off on Spacesaver M setPinOutput(C11); // middle led, always off on Spacesaver M
writePin(C11, 0); writePin(C11, 0);
setPinOutput(C10); // right-most led, normally Scroll Lock, but on Spacesaver M indicates function layer 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_enable=true;
//debug_matrix=true; //debug_matrix=true;