Stewart Platform GUI v1.0 Developed by C.H. Dep of EEA

Dependencies:   mbed

Revision:
0:2dfaf5bab3ee
Child:
1:4d9e8e7cbb4b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Dec 09 08:49:02 2017 +0000
@@ -0,0 +1,31 @@
+#include "mbed.h"
+#include "GUI.h"
+#include <string> 
+
+
+//------------------------------------
+// Hyperterminal configuration
+// 9600 bauds, 8-bit data, no parity
+//------------------------------------
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+Serial s2(PC_10, PC_11,115200);
+
+DigitalOut myled(LED1);
+
+int main()
+{
+    float jj = 10.1256;
+    pc.printf("Hello World !\n");
+    InitGUI(&s2);
+    while(1) {
+        jj += 1.5663;
+        if(jj > 300)
+            jj = 10.1236;
+        //wait(1);
+        //pc.printf("This program runs since %d seconds.\n", i++);
+        //InitGUI(&s2);
+        RefreshGUI(&s2, jj, jj, jj, jj, jj, jj, jj, jj, jj, jj, jj, jj);
+        myled = !myled;
+    }
+}