Chen Huan
/
MotorPID
闭环步进电机
Diff: GUI.h
- Revision:
- 1:cbd6a3232d5b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GUI.h Thu Apr 05 01:37:17 2018 +0000 @@ -0,0 +1,30 @@ +#ifndef __GUI_H +#define __GUI_H +#include "mbed.h" +#include <string> +#include <sstream> + +void InitGUI(Serial *Screen); + +void RefreshGUI(Serial *Screen, int freq, float kp, float ki, int goal, int pos); + +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); + +void PS(Serial *Screen, int x1, int y1, int color); + +string int2string(int x); + +string float2string(float x); + + +#endif \ No newline at end of file