Example of temperature limit detection for STTS751 in X-NUCLEO-IKS01A3

Dependencies:   X_NUCLEO_IKS01A3

Temperature Limit Demo Application with STTS751 based on sensor expansion board X-NUCLEO-IKS01A3

Main function is to show how to detect exceeding of temperature limits using the sensor expansion board and send a notification using UART to a connected PC or Desktop and display it on terminal applications like TeraTerm.
After connection has been established:
- the user can heat up or cool down the board and view the data using an hyper terminal.

Revision:
6:acde79c5a18a
Parent:
5:b747a8948606
--- a/main.cpp	Wed Jul 24 14:56:10 2019 +0000
+++ b/main.cpp	Thu Jun 04 17:09:10 2020 +0000
@@ -38,6 +38,7 @@
 
 /* Includes */
 #include "mbed.h"
+#include "rtos.h"
 #include "XNucleoIKS01A3.h"
 
 /* Instantiate the expansion board */
@@ -132,7 +133,7 @@
 
             t_sensor->get_temperature(&temperature);
             myled = 1;
-            wait(0.1);
+            ThisThread::sleep_for(100);
             myled = 0;
         }