Richard Kuo
/
NTOUEE-mbed-I2C_LCD_movingcircle
mbed I2C to LCD for drawing a moving circle
Diff: draw2D.h
- Revision:
- 0:5e40d147a8e1
diff -r 000000000000 -r 5e40d147a8e1 draw2D.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/draw2D.h Thu Oct 20 13:05:10 2016 +0000 @@ -0,0 +1,9 @@ + +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); +}; +