From 834ec5503cbf05c4008133de2ddda155ef6183d1 Mon Sep 17 00:00:00 2001 From: Peter Hinch Date: Thu, 21 Apr 2022 17:55:12 +0100 Subject: [PATCH] encoder.py: improve tracking of detents. --- gui/primitives/encoder.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gui/primitives/encoder.py b/gui/primitives/encoder.py index 289b877..d0c5517 100644 --- a/gui/primitives/encoder.py +++ b/gui/primitives/encoder.py @@ -3,6 +3,12 @@ # Copyright (c) 2021-2022 Peter Hinch # Released under the MIT License (MIT) - see LICENSE file +# Thanks are due to @ilium007 for identifying the issue of tracking detents, +# https://github.com/peterhinch/micropython-async/issues/82. +# Also to Mike Teachman (@miketeachman) for design discussions and testing +# against a state table design +# https://github.com/miketeachman/micropython-rotary/blob/master/rotary.py + import uasyncio as asyncio from machine import Pin