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:
- 6:a1a85f2bc04b
- Parent:
- 5:890ddd974624
- Child:
- 8:b634ac9c92f8
--- 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