diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-05-04 15:04:34 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-05-04 15:21:45 +0200 |
commit | 3aaafce2e309f20f2127ed5c8d0919f81d469c37 (patch) | |
tree | 3114191cdd63ea1dedb0c5bd4480e2f4531885d1 /keyclick.h | |
parent | f29443cd40f9050beedab3a822b6e0f24fb789cd (diff) | |
download | tmk7637-3aaafce2e309f20f2127ed5c8d0919f81d469c37.tar.gz |
revised solenoid triggering: it behaves more like an IBM Beamspring solenoid now
* It is deactivated after a short while, so the state of the solenoid does
not correspond with the state of the key.
* The MCU now less frequently crashes, but quite possibly we will need a separate
power supply to use the solenoid.
Diffstat (limited to 'keyclick.h')
-rw-r--r-- | keyclick.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -22,6 +22,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include <avr/io.h> +#define KEYCLICK_SOLENOID_EXTENDTIME 15 /* ms */ +#define KEYCLICK_BUZZER_TIME 50 /* ms */ + enum keyclick_mode { KEYCLICK_OFF = 0, KEYCLICK_SOLENOID, |