NuMaker-PFM-NUC472: I2C1 LCD draw a moving circle

draw2D.h

Committer:
ccli8
Date:
2017-07-11
Revision:
1:219b99b987f0
Parent:
0:72afeb131817

File content as of revision 1:219b99b987f0:


class Draw2D {
    public:
    void drawLine(int x1, int y1, int x2, int y2, int fgColor, int bgColor);
    void drawCircle(int xc, int yc, int r, int fgColor, int bgColor);
    void drawRectangle(int x0, int y0, int x1, int y1, int fgColor, int bgColor);
    void drawTriangle(int x0, int y0, int x1, int y1, int x2, int y2, int fgColor, int bgColor);
};