Chen Huan
/
UsartGPU
Stewart Platform GUI v1.0 Developed by C.H. Dep of EEA
main.cpp
- Committer:
- heroistired
- Date:
- 2017-12-09
- Revision:
- 0:2dfaf5bab3ee
- Child:
- 1:4d9e8e7cbb4b
File content as of revision 0:2dfaf5bab3ee:
#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; } }