diff options
author | mtdjr <mtdjr@users.noreply.github.com> | 2018-06-20 18:13:00 -0400 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-06-20 15:13:00 -0700 |
commit | e8eaf5630cee4f5d16b0c86627579c5a695540d5 (patch) | |
tree | 0635413c03b59dc46f7af0f36f34d4e84fa06bf0 /users/mtdjr/solenoid.h | |
parent | f46b1db9f4997631c3e09269e51faf5f2bc3aeaf (diff) |
Updates to mtdjr userspace and keymaps (#3206)
* slight tweaks to xd75 keymap
* update to config.h to remove undef of solenoid active
* code organization for userspace
* updates to userspace and keymaps
* add rgb to userspace and lets split
* add conditional around rgb functions in userpsace
* move rgb layer changes into layer_state_set_user
Diffstat (limited to 'users/mtdjr/solenoid.h')
-rw-r--r-- | users/mtdjr/solenoid.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/users/mtdjr/solenoid.h b/users/mtdjr/solenoid.h index 38066f4c39..a911bf794f 100644 --- a/users/mtdjr/solenoid.h +++ b/users/mtdjr/solenoid.h @@ -4,13 +4,17 @@ #include <timer.h> #include "pincontrol.h" + #define SOLENOID_DEFAULT_DWELL 12 #define SOLENOID_MAX_DWELL 100 #define SOLENOID_MIN_DWELL 4 #ifndef SOLENOID_ACTIVE #define SOLENOID_ACTIVE false #endif -//#define SOLENOID_PIN F6 +#ifndef SOLENOID_PIN + #define SOLENOID_PIN F6 +#endif + bool solenoid_enabled = SOLENOID_ACTIVE; bool solenoid_on = false; @@ -92,12 +96,4 @@ void solenoid_setup(void) { pinMode(SOLENOID_PIN, PinDirectionOutput); } -void matrix_init_user(void) { - solenoid_setup(); -} - -void matrix_scan_user(void) { - solenoid_check(); -} - #endif |