]> Repositories - Adafruit_Blinka-hackapet.git/blob - src/pulseio.py
b8c209bb4d4ecb07ccffdf5e895337e175236f91
[Adafruit_Blinka-hackapet.git] / src / pulseio.py
1 """
2 `pulseio` - Pulse Width Modulation input and output control
3 ===========================================================
4 See `CircuitPython:pulseio` in CircuitPython for more details.
5 Not supported by all boards.
6
7 * Author(s): Melissa LeBlanc-Williams
8 """
9
10 import sys
11
12 from adafruit_blinka.agnostic import detector
13
14 # pylint: disable=unused-import
15
16 if detector.board.any_raspberry_pi:
17     from adafruit_blinka.microcontroller.bcm283x.pulseio.PulseIn import PulseIn
18 elif "sphinx" in sys.modules:
19     pass
20 else:
21     raise NotImplementedError("pulseio not supported for this board.")