Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions keyboards/ibm/model_m_4th_gen/overnumpad_1xb/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions keyboards/ibm/model_m_4th_gen/overnumpad_1xb/overnumpad_1xb.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@

void keyboard_post_init_kb(void)
{
// Solenoid enable:
setPinOutput(C13);
writePin(C13, 1);

//debug_enable=true;
//debug_matrix=true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@

void keyboard_post_init_kb(void)
{
// Solenoid enable:
setPinOutput(C13);
writePin(C13, 1);

//debug_enable=true;
//debug_matrix=true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@

void keyboard_post_init_kb(void)
{
// Solenoid enable:
setPinOutput(C13);
writePin(C13, 1);

//debug_enable=true;
//debug_matrix=true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down