We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6679ab + 8ee9b84 commit 795dd52Copy full SHA for 795dd52
adafruit_ble/__init__.py
@@ -43,6 +43,12 @@
43
https://github.com/adafruit/circuitpython/releases
44
45
"""
46
+#pylint: disable=wrong-import-position
47
+import sys
48
+if sys.implementation.name == 'circuitpython' and sys.implementation.version[0] <= 4:
49
+ raise ImportError(
50
+ "This release is not compatible with CircuitPython 4.x; use library release 1.x.x")
51
+#pylint: enable=wrong-import-position
52
53
import board
54
import _bleio
0 commit comments