X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/701655ace19cad12a315d91df4762c9f0b678ef9..c9910bc369a6857ad3ae6d8ce009e638d61a247f:/src/pulseio.py diff --git a/src/pulseio.py b/src/pulseio.py index 9bee175..f80459e 100644 --- a/src/pulseio.py +++ b/src/pulseio.py @@ -1,4 +1,24 @@ +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT +""" +`pulseio` - Pulse Width Modulation input and output control +=========================================================== +See `CircuitPython:pulseio` in CircuitPython for more details. +Not supported by all boards. + +* Author(s): Melissa LeBlanc-Williams +""" + +import sys + from adafruit_blinka.agnostic import detector -if detector.board.any_raspberry_pi_2_or_3: +# pylint: disable=unused-import + +if detector.board.any_raspberry_pi: from adafruit_blinka.microcontroller.bcm283x.pulseio.PulseIn import PulseIn +elif "sphinx" in sys.modules: + pass +else: + raise NotImplementedError("pulseio not supported for this board.")