1 /* Copyright 2018 mtdjr - modified by ishtob
2 * Driver for solenoid written for QMK
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef SOLENOID_DEFAULT_DWELL
21 #define SOLENOID_DEFAULT_DWELL 12
24 #ifndef SOLENOID_MAX_DWELL
25 #define SOLENOID_MAX_DWELL 100
28 #ifndef SOLENOID_MIN_DWELL
29 #define SOLENOID_MIN_DWELL 4
32 #ifndef SOLENOID_ACTIVE
33 #define SOLENOID_ACTIVE false
37 #define SOLENOID_PIN F6
40 void solenoid_buzz_on(void);
41 void solenoid_buzz_off(void);
42 void solenoid_set_buzz(int buzz);
44 void solenoid_dwell_minus(uint8_t solenoid_dwell);
45 void solenoid_dwell_plus(uint8_t solenoid_dwell);
46 void solenoid_set_dwell(uint8_t dwell);
48 void solenoid_stop(void);
49 void solenoid_fire(void);
51 void solenoid_check(void);
53 void solenoid_setup(void);
54 void solenoid_shutdown(void);