Skip to content

Commit

Permalink
overnumpad controller: Add support for turning off solenoid enable in…
Browse files Browse the repository at this point in the history
… low power. (qmk#15021)
  • Loading branch information
purdeaandrei authored and ptrxyz committed Nov 6, 2021
1 parent cc1e4ad commit aafe231
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 18 deletions.
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

0 comments on commit aafe231

Please sign in to comment.