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 66925a5 + 1333644 commit 0415b1cCopy full SHA for 0415b1c
adafruit_platformdetect/chip.py
@@ -88,17 +88,14 @@ def id(
88
+ "set, but no MCP2221 device found"
89
)
90
if os.environ.get("BLINKA_GREATFET"):
91
- from greatfet import GreatFET
92
- from greatfet.errors import DeviceNotFoundError
+ import usb
93
94
- try:
95
- _ = GreatFET()
+ if usb.core.find(idVendor=0x1D50, idProduct=0x60E6) is not None:
96
return chips.LPC4330
97
- except DeviceNotFoundError():
98
- raise RuntimeError(
99
- "BLINKA_GREATFET environment variable "
100
- + "set, but no GreatFET device found"
101
- )
+ raise RuntimeError(
+ "BLINKA_GREATFET environment variable "
+ + "set, but no GreatFET device found"
+ )
102
if os.environ.get("BLINKA_NOVA"):
103
return chips.BINHO
104
0 commit comments