Remove the convert_to_double function and use sensor_value_to_double from sensor.h. Change-Id: I92ef4219057f431917f4c8e9d46d4ee2074b423b Signed-off-by: Bogdan Davidoaia <bogdan.davidoaia@linaro.org> |
||
|---|---|---|
| .. | ||
| src | ||
| Makefile | ||
| prj.conf | ||
| README.txt | ||
| testcase.ini | ||
Title: Thermometer
Description:
A simple thermometer example
--------------------------------------------------------------------------------
Building and Running Project:
This project writes the temperature to the console once per second.
It can be built and executed on bbc_microbit as follows:
make
Sample Output:
Thermometer Example!
arm temp device is 0x20000184, name is TEMP_0
Temperature is 29.5C
Temperature is 29.5C
Temperature is 29.5C