Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Sensors by
Diff: Sensors.cpp
- Revision:
- 3:9125dafacc63
- Child:
- 4:ee98296289d0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sensors.cpp	Mon Feb 22 02:59:07 2016 +0000
@@ -0,0 +1,17 @@
+#include "Sensors.h"
+
+Ticker ticker1;
+int64_t p_temp;
+int64_t data_1;
+    
+void add_data(void)
+{
+    data_1 += 100;    
+}
+
+Sensors::tmpSensorValue_t Sensors::get()
+{
+    ticker1.attach(add_data,1);
+    p_temp = data_1;
+    return p_temp;
+}
    