Skip to content

Commit af46c8a

Browse files
Modify output assignment to use first element of returned tuple (value)
Update output values to use the first element from range_slicer rather than both values from the returned tuple.
1 parent 884a8ce commit af46c8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ Usage Example
9999
control_1 = pot_1.value
100100
101101
# calculate output values and print (or plot in Mu)
102-
out_0 = ctrl_0.range_slicer(control_0)
103-
out_1 = ctrl_1.range_slicer(control_1)
102+
out_0 = ctrl_0.range_slicer(control_0)[0]
103+
out_1 = ctrl_1.range_slicer(control_1)[0]
104104
print( (control_0 / 65535, control_1 / 65535, out_0, out_1) )
105105
106106
time.sleep(0.1) # pause for 0.1 second

0 commit comments

Comments
 (0)