We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7e468d commit 42814c0Copy full SHA for 42814c0
1 file changed
scripts/ftdi_check.py
@@ -0,0 +1,18 @@
1
+# ftdi_check.py
2
+
3
+from pyftdi.ftdi import Ftdi
4
+from pyftdi.usbtools import UsbToolsError
5
6
7
+def main():
8
+ try:
9
+ print("Scanning for FTDI devices...")
10
+ Ftdi.show_devices()
11
+ except UsbToolsError as e:
12
+ print("USB error:", e)
13
+ except Exception as e:
14
+ print("General error:", e)
15
16
17
+if __name__ == "__main__":
18
+ main()
0 commit comments