Rihards Balass / 4DGL-mbed-32PTU
Revision:
6:a1a85f2bc04b
Parent:
5:890ddd974624
Child:
8:b634ac9c92f8
diff -r 890ddd974624 -r a1a85f2bc04b Picaso_4DGL-32PTU.h
--- a/Picaso_4DGL-32PTU.h	Mon Sep 12 10:15:54 2016 +0000
+++ b/Picaso_4DGL-32PTU.h	Mon Sep 12 11:25:37 2016 +0000
@@ -64,6 +64,8 @@
 #define DRAW_TRIANGLE       0xFFBF
 #define TRIANGLE_FILLED     0xFFA9
 #define CALCULATE_ORBIT     0x0012
+#define PUT_PIXEL           0xFFC1
+#define MOVE_ORIGIN         0xFFCC
 
 
 
@@ -167,12 +169,14 @@
     Serial pc; // serial variable for debug information
     PICASO_4DGL(PinName tx, PinName rx, PinName rst); // LCD serial construnctor
     int index; // received response from screen
+    short Xdest, Ydest;
     char response[];
     char rxBuf[];
     
 // General Commands
     void rxCallback();
     void getResponse(int); // wait for LCD response
+    void calculateOrbitResponse(); // wait for LCD response
     //void responseBuild(int);
     void reset(); // reset screen
     void baudrate(long); // set baudrate
@@ -195,6 +199,8 @@
     void drawTriangle(short, short, short, short, short, short, short); // draw a triangle (x1, y1, x2, y2, x3, y3, color)
     void drawFilledTriangle(short, short, short, short, short, short, short); // draw a solid triangle (x1, y1, x2, y2, x3, y3, color)
     void calculateOrbit(short, short); // calculate distant point coordinates (angle, distance)
+    void putPixel(short, short, short); // draw a pixel (x, y, color)
+    void moveOrigin(short, short); // change origin point (x, y)
     
 // Texts Commands
     void setFont(char); // set desired font from embedded fonts