Browse Source

Add example of SinkConfig.__str__ to README

Clara Hobbs 7 years ago
parent
commit
2f32bfb86c
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      README.md

+ 5
- 0
README.md View File

@@ -18,6 +18,11 @@ Interface
18 18
     >>> pdbs = pdbuddy.Sink(list(pdbuddy.Sink.get_devices())[0])
19 19
     >>> pdbs.get_cfg()
20 20
     SinkConfig(status=SinkStatus.VALID, flags=SinkFlags.NONE, v=5000, i=3000)
21
+    >>> print(pdbs.get_cfg())
22
+    status: valid
23
+    flags: (none)
24
+    v: 5.00 V
25
+    i: 3.00 A
21 26
 
22 27
 ### Locally manipulate a SinkConfig object
23 28
 

Loading…
Cancel
Save