Chen Huan
/
UsartGPU
Stewart Platform GUI v1.0 Developed by C.H. Dep of EEA
Diff: GUI.h
- Revision:
- 0:2dfaf5bab3ee
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GUI.h Sat Dec 09 08:49:02 2017 +0000 @@ -0,0 +1,28 @@ +#ifndef __GUI_H +#define __GUI_H +#include "mbed.h" +#include <string> +#include <sstream> + +void InitGUI(Serial *Screen); + +void RefreshGUI(Serial *Screen, float Servo1, float Servo2, float Servo3, float Servo4, float Servo5, float Servo6, float Bar1, float Bar2, float Bar3, float Bar4, float Bar5, float Bar6); + + +void DS16(Serial *Screen, int x, int y, string str, int color); + +void DS24(Serial *Screen, int x, int y, string str, int color); + +void SXY(Serial *Screen, int x,int y); + +void CLS(Serial *Screen, int color); + +void ExecuteInstruction(Serial *Screen); + +void PL(Serial *Screen, int x1, int y1, int x2, int y2, int color); + +string int2string(int x); + +string float2string(float x); + +#endif \ No newline at end of file