diff options
| author | Ned Konz <ned@metamagix.tech> | 2025-09-30 13:22:10 -0700 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-10-13 12:06:24 +1100 |
| commit | c6a78515fba853ecfe3083cba5f5a09fb72d475d (patch) | |
| tree | f15ff0960f178729b93b11e38494424566c52b86 /docs/zephyr/tutorial/repl.rst | |
| parent | d42a301afd2661618e2a1a6a09c668b2f044c3d8 (diff) | |
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>
Diffstat (limited to 'docs/zephyr/tutorial/repl.rst')
0 files changed, 0 insertions, 0 deletions
