Skip to content

Commit 42814c0

Browse files
committed
FTDI check script
1 parent c7e468d commit 42814c0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

scripts/ftdi_check.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)