From 5c10727b68cd22d3f280acf00ea6c3ac062bec8a Mon Sep 17 00:00:00 2001 From: enriquezgarc Date: Tue, 30 Aug 2022 17:06:25 +0200 Subject: [PATCH] docs/zephyr/quickref: Fix zsensor module usage examples. Signed-off-by: enriquezgarc --- docs/zephyr/quickref.rst | 8 ++++---- 1 file 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 ` 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