X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/d21bd2e848c5198b238bf30fd3b953deb3d1c805..84862c851a21caebff5194cbb7d94c9ff14ad132:/src/rotaryio.py diff --git a/src/rotaryio.py b/src/rotaryio.py index d81ae5c..b8bf4cb 100644 --- a/src/rotaryio.py +++ b/src/rotaryio.py @@ -11,12 +11,16 @@ See `CircuitPython:rotaryio` in CircuitPython for more details. from adafruit_blinka.agnostic import detector +# pylint: disable=unused-import + # Import any board specific modules here if detector.board.any_raspberry_pi_5_board: from adafruit_blinka.microcontroller.bcm283x.rotaryio import IncrementalEncoder elif detector.board.any_embedded_linux: - #fall back to the generic linux implementation - from adafruit_blinka.microcontroller.generic_linux.rotaryio import IncrementalEncoder + # fall back to the generic linux implementation + from adafruit_blinka.microcontroller.generic_linux.rotaryio import ( + IncrementalEncoder, + ) else: # For non-Linux Boards, threading likely will work in the same way raise NotImplementedError("Board not supported")