Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Picaso_4DGL-32PTU.h
- Revision:
- 4:50511ed54ab4
- Parent:
- 3:dcfbceb81fef
- Child:
- 5:890ddd974624
--- a/Picaso_4DGL-32PTU.h Fri Sep 09 10:19:54 2016 +0000
+++ b/Picaso_4DGL-32PTU.h Fri Sep 09 12:45:28 2016 +0000
@@ -63,6 +63,7 @@
#define POLYGON_FILLED 0x0014
#define DRAW_TRIANGLE 0xFFBF
#define TRIANGLE_FILLED 0xFFA9
+#define CALCULATE_ORBIT 0x0012
@@ -156,6 +157,7 @@
#define font2 2
#define font3 3
+#define bufLen 32
//**************************************************************************
class PICASO_4DGL {
@@ -166,10 +168,11 @@
PICASO_4DGL(PinName tx, PinName rx, PinName rst); // LCD serial construnctor
int resp, respLen; // received response from screen
char response[];
+ uint8_t rxBuf[];
// General Commands
void getResponse();
- void responseBuild(int, char);
+ void responseBuild(int);
void reset(); // reset screen
void baudrate(long); // set baudrate
void screenOrientation(char); // set desired orientation of a screen
@@ -190,6 +193,7 @@
void drawFilledPolygon(short, short *, short *, short); // draw a solid polygon (n, vx1…vxN, vy1…vyN, color)
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)
// Texts Commands
void setFont(char); // set desired font from embedded fonts
@@ -218,8 +222,10 @@
Serial _cmd; // serial variable, to comunicate with screen
DigitalOut _rst; // screen reset pin
-
+
+
void freeBUFFER (void);
+ void clearResponse();
void writeBYTE (char);
void writeCOMMAND(char *, int); // send command to screen
};