1 # SPDX-FileCopyrightText: 2025 Melissa LeBlanc-Williams for Adafruit Industries
3 # SPDX-License-Identifier: MIT
5 `rotaryio` - Support for reading rotation sensors
6 ===========================================================
7 See `CircuitPython:rotaryio` in CircuitPython for more details.
9 * Author(s): Melissa LeBlanc-Williams
12 from adafruit_blinka.agnostic import detector
14 # pylint: disable=unused-import
16 # Import any board specific modules here
17 if detector.board.any_raspberry_pi_5_board:
18 from adafruit_blinka.microcontroller.bcm283x.rotaryio import IncrementalEncoder
19 elif detector.board.any_embedded_linux:
20 # fall back to the generic linux implementation
21 from adafruit_blinka.microcontroller.generic_linux.rotaryio import (
25 # For non-Linux Boards, threading likely will work in the same way
26 raise NotImplementedError("Board not supported")