micropython/docs/zephyr
Ned Konz c6a78515fb zephyr/modzsensor: Add set/get sensor attributes to zsensor.
This commit adds `Sensor.attr_set()` and `Sensor.attr_get_*()` methods that
are necessary to set various sensor attributes if they haven't been set
statically in the device tree.

This is needed, for example, because the LSM6DS3TR-C sensor on the XIAO BLE
NRF52840 SENSE board will not work with `zsensor` because it doesn't have
any default configuration for sampling frequency.

Various `SENSOR_ATTR_*` constants from
`zephyr/incude/zephyr/drivers/sensor.h` have been added as `ATTR_*`
constants in the `zsensor` module.

Signed-off-by: Ned Konz <ned@metamagix.tech>
2025-10-13 12:06:24 +11:00
..
tutorial zephyr: Upgrade to Zephyr v4.2.0. 2025-08-16 15:10:30 +10:00
general.rst docs/zephyr: Add quick reference for the Zephyr port. 2021-08-13 20:20:57 +10:00
quickref.rst zephyr/modzsensor: Add set/get sensor attributes to zsensor. 2025-10-13 12:06:24 +11:00