We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68561fc commit 8afdcccCopy full SHA for 8afdccc
tests/circuitpython-manual/usb/device_info.py
@@ -9,7 +9,8 @@
9
d.switch_to_output(value=True)
10
print("USB power on")
11
12
-h = usb_host.Port(board.USB_HOST_DP, board.USB_HOST_DM)
+if hasattr(board, "USB_HOST_DP") and hasattr(board, "USB_HOST_DM"):
13
+ h = usb_host.Port(board.USB_HOST_DP, board.USB_HOST_DM)
14
15
while True:
16
for device in usb.core.find(find_all=True):
0 commit comments