Felipe Gabardo Gonçalves
Hi Yorick, This TEMP sensor are defined within zephyr sensors pattern. You should use it by binding the device to a struct and using the default functions from sensor.h You should use this to bind: struct device *my_sensor_name = device_get_binding(CONFIG_TEMP_NRF5_NAME); This to fetch a measurement: sensor_sample_fetch(my_sensor_name); And this to return to you the measurement: sensor_channel_get(my_sensor_name, SENSOR_CHAN_DIE_TEMP, &value); Follows the zephyr documentation for sensor implementation: https://docs.zephyrproject.org/latest/subsystems/sensor.html Em qui, 7 de mar de 2019 às 11:50, Yorick Brunet <yorick.brunet@...> escreveu: Hello, --
|
|||||||
|