aboutsummaryrefslogtreecommitdiff
path: root/keyclick.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-05-04 15:04:34 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-05-04 15:21:45 +0200
commit3aaafce2e309f20f2127ed5c8d0919f81d469c37 (patch)
tree3114191cdd63ea1dedb0c5bd4480e2f4531885d1 /keyclick.h
parentf29443cd40f9050beedab3a822b6e0f24fb789cd (diff)
downloadtmk7637-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/keyclick.h b/keyclick.h
index f964230..c7c7fd2 100644
--- a/keyclick.h
+++ b/keyclick.h
@@ -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,