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

Dependencies:   mbed

Committer:
heroistired
Date:
Sat Dec 09 08:49:02 2017 +0000
Revision:
0:2dfaf5bab3ee
Child:
1:4d9e8e7cbb4b
Stewart Platform GUI v1.0 ; Developed by C.H. Dep of EEA

Who changed what in which revision?

UserRevisionLine numberNew contents of line
heroistired 0:2dfaf5bab3ee 1 #include "mbed.h"
heroistired 0:2dfaf5bab3ee 2 #include "GUI.h"
heroistired 0:2dfaf5bab3ee 3 #include <string>
heroistired 0:2dfaf5bab3ee 4
heroistired 0:2dfaf5bab3ee 5
heroistired 0:2dfaf5bab3ee 6 //------------------------------------
heroistired 0:2dfaf5bab3ee 7 // Hyperterminal configuration
heroistired 0:2dfaf5bab3ee 8 // 9600 bauds, 8-bit data, no parity
heroistired 0:2dfaf5bab3ee 9 //------------------------------------
heroistired 0:2dfaf5bab3ee 10
heroistired 0:2dfaf5bab3ee 11 Serial pc(SERIAL_TX, SERIAL_RX);
heroistired 0:2dfaf5bab3ee 12 Serial s2(PC_10, PC_11,115200);
heroistired 0:2dfaf5bab3ee 13
heroistired 0:2dfaf5bab3ee 14 DigitalOut myled(LED1);
heroistired 0:2dfaf5bab3ee 15
heroistired 0:2dfaf5bab3ee 16 int main()
heroistired 0:2dfaf5bab3ee 17 {
heroistired 0:2dfaf5bab3ee 18 float jj = 10.1256;
heroistired 0:2dfaf5bab3ee 19 pc.printf("Hello World !\n");
heroistired 0:2dfaf5bab3ee 20 InitGUI(&s2);
heroistired 0:2dfaf5bab3ee 21 while(1) {
heroistired 0:2dfaf5bab3ee 22 jj += 1.5663;
heroistired 0:2dfaf5bab3ee 23 if(jj > 300)
heroistired 0:2dfaf5bab3ee 24 jj = 10.1236;
heroistired 0:2dfaf5bab3ee 25 //wait(1);
heroistired 0:2dfaf5bab3ee 26 //pc.printf("This program runs since %d seconds.\n", i++);
heroistired 0:2dfaf5bab3ee 27 //InitGUI(&s2);
heroistired 0:2dfaf5bab3ee 28 RefreshGUI(&s2, jj, jj, jj, jj, jj, jj, jj, jj, jj, jj, jj, jj);
heroistired 0:2dfaf5bab3ee 29 myled = !myled;
heroistired 0:2dfaf5bab3ee 30 }
heroistired 0:2dfaf5bab3ee 31 }