example

Dependencies:   sgam-lib

Revision:
3:a02fcd753ae3
Parent:
2:b6bb08a9723d
Child:
4:60f2a8b3727c
--- a/main.cpp	Mon May 20 20:23:27 2019 -0300
+++ b/main.cpp	Mon May 20 23:28:24 2019 +0000
@@ -14,3 +14,28 @@
     led1 = 0;
     return 1;
 }
+
+/** 
+#include "mbed.h"
+#include "Grove_temperature.h"
+
+DigitalOut led(D6);
+Grove_temperature temp(A1);
+Serial pc(USBTX, USBRX);
+
+// main() runs in its own thread in the OS
+int main() {
+    printf("!!!INICIO!!!\r\n");
+    pc.baud(9600);
+    while (true) {
+        printf("temperature = %2.2f\r\n", temp.getTemperature());
+        
+        led = 1;    // Switch ON the LED.
+        wait(0.5);  // Wait for 0.5 Seconds.
+        led = 0;    // Switch OFF the LED.
+        wait(0.5);  // Wait for 0.5 Seconds.
+        
+        wait(1);
+    }
+}
+*/