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
This commit is contained in:
parent
f46b1db9f4
commit
e8eaf5630c
10 changed files with 205 additions and 181 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue