We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 90e4ca9 + 39daae4 commit 058c945Copy full SHA for 058c945
adafruit_hid/consumer_control.py
@@ -28,6 +28,11 @@
28
* Author(s): Dan Halbert
29
"""
30
31
+import sys
32
+if sys.implementation[1][0] < 3:
33
+ raise ImportError('{0} is not supported in CircuitPython 2.x or lower'.format(__name__))
34
+
35
+# pylint: disable=wrong-import-position
36
import time
37
import usb_hid
38
adafruit_hid/gamepad.py
import struct
0 commit comments