aboutsummaryrefslogtreecommitdiffstats
path: root/users/mtdjr/solenoid.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/mtdjr/solenoid.h')
-rw-r--r--users/mtdjr/solenoid.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/users/mtdjr/solenoid.h b/users/mtdjr/solenoid.h
index 38066f4c3..a911bf794 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