adafruit / Adafruit_CircuitPython_HID

USB Human Interface Device drivers.
MIT License
365 stars 106 forks source link

Raise ImportError if using CircuitPython < 3. #21

Closed zzsnzmn closed 6 years ago

zzsnzmn commented 6 years ago

Use sys.implementation to check if using CircuitPython 2 or lower and raise an import error if the version is incompatible.

Fixes: https://github.com/adafruit/Adafruit_CircuitPython_HID/issues/20