change approach, too much m4
This commit is contained in:
@ -1,15 +1,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Projects - just for fun</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
define(`TITLE', `Debouncing a rotary encoder is really hard')
|
||||
define(`DATE', `2014-01-08')
|
||||
define(`CONTENT', `
|
||||
... but finally it worked:
|
||||
|
||||
<pre>
|
||||
@ -100,8 +91,4 @@ void hardwareInit() {
|
||||
The primary problem was not to get any rotary event of the wrong direction, the secondary problem was not to miss too much events, best of course none.
|
||||
|
||||
Only the combination of a dead time after one interrupt and validating a read pin state by rereading it MANY times solved the primary problem. To solve the secondary problem too, the validation has be softened by not requiring all reread states to have the same value but accepting a limited number of wrong values.
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
')
|
Reference in New Issue
Block a user