We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d090fc4 commit e6d4692Copy full SHA for e6d4692
1 file changed
README.md
@@ -6,7 +6,7 @@ This is a simple Python wrapper for [uhubctl](https://github.com/mvp/uhubctl)
6
7
## Discover all usable USB hubs
8
9
-'''python
+```python
10
import uhubctl
11
12
hubs = uhubctl.discover_hubs()
@@ -16,20 +16,20 @@ for hub in hubs:
16
17
for port in hub.ports:
18
print(f" Found port: {port}")
19
-'''
+```
20
21
## Manually specify hub and port
22
23
24
from uhubctl import Hub, Port
25
26
hub = Hub("1-1")
27
hub.add_port(1)
28
29
30
## Control ports
31
32
33
34
35
@@ -43,4 +43,4 @@ port.status = True
43
44
print("Get port 1-1.1 status")
45
print(port.status)
46
0 commit comments