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.
1 parent 074b11c commit e01bac6Copy full SHA for e01bac6
ev3dev/core.py
@@ -1341,6 +1341,12 @@ def units(self):
1341
# ~autogen
1342
1343
def value(self, n=0):
1344
+ """
1345
+ Returns the value or values measured by the sensor. Check num_values to
1346
+ see how many values there are. Values with N >= num_values will return
1347
+ an error. The values are fixed point numbers, so check decimals to see
1348
+ if you need to divide to get the actual value.
1349
1350
if isinstance(n, numbers.Integral):
1351
n = '{0:d}'.format(n)
1352
elif isinstance(n, numbers.Real):
0 commit comments