summaryrefslogtreecommitdiffstatshomepage
path: root/docs/zephyr/quickref.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/zephyr/quickref.rst')
-rw-r--r--docs/zephyr/quickref.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/zephyr/quickref.rst b/docs/zephyr/quickref.rst
index 783621316c..329a9c41c0 100644
--- a/docs/zephyr/quickref.rst
+++ b/docs/zephyr/quickref.rst
@@ -151,7 +151,7 @@ Use the :ref:`zsensor.Sensor <zsensor.Sensor>` class to access sensor data::
accel.measure() # obtain a measurement reading from the accelerometer
# each of these prints the value taken by measure()
- accel.float(zsensor.ACCEL_X) # print measurement value for accelerometer X-axis sensor channel as float
- accel.millis(zsensor.ACCEL_Y) # print measurement value for accelerometer Y-axis sensor channel in millionths
- accel.micro(zsensor.ACCEL_Z) # print measurement value for accelerometer Z-axis sensor channel in thousandths
- accel.int(zsensor.ACCEL_X) # print measurement integer value only for accelerometer X-axis sensor channel
+ accel.get_float(zsensor.ACCEL_X) # print measurement value for accelerometer X-axis sensor channel as float
+ accel.get_millis(zsensor.ACCEL_Y) # print measurement value for accelerometer Y-axis sensor channel in millionths
+ accel.get_micro(zsensor.ACCEL_Z) # print measurement value for accelerometer Z-axis sensor channel in thousandths
+ accel.get_int(zsensor.ACCEL_X) # print measurement integer value only for accelerometer X-axis sensor channel