The Temperature Example shows how to use a temperature sensor and print the measurement.
The application starts with configuring the temperature module and app_uart. The main loop reads the temperature sensor and prints measurement every 500 milliseconds.
You can find the source code and the project file of the example in the following folder:
<InstallFolder>\examples\peripheral\temperature
Testing
Test the Temperature Example application by performing the following steps:
- Compile and program the application.
-
Start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings:
- Baud rate: 115.200
- 8 data bits
- 1 stop bit
- No parity
- HW flow control: RTS/CTS
- Observe that a temperature value is printed every 500 milliseconds.