summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorenriquezgarc <enriquezgarcia.external@infineon.com>2022-08-30 17:06:25 +0200
committerDamien George <damien@micropython.org>2023-01-19 16:04:24 +1100
commit5c10727b68cd22d3f280acf00ea6c3ac062bec8a (patch)
treeb10693c4a887a61a1a91ebd68ce8c99d4630a7a0
parent23ef29706e3be7515d07161234208b889cebae15 (diff)
downloadmicropython-5c10727b68cd22d3f280acf00ea6c3ac062bec8a.tar.gz
micropython-5c10727b68cd22d3f280acf00ea6c3ac062bec8a.zip
docs/zephyr/quickref: Fix zsensor module usage examples.
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
-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