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 e40b1f5 + 8afdccc commit 429efe8Copy full SHA for 429efe8
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