Richard Kuo
/
NTOUEE-mbed-I2C_LCD_movingcircle
mbed I2C to LCD for drawing a moving circle
draw2D.h@0:5e40d147a8e1, 2016-10-20 (annotated)
- Committer:
- rkuo2000
- Date:
- Thu Oct 20 13:05:10 2016 +0000
- Revision:
- 0:5e40d147a8e1
mbed I2C to LCD for drawing a moving circle
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rkuo2000 | 0:5e40d147a8e1 | 1 | |
rkuo2000 | 0:5e40d147a8e1 | 2 | class Draw2D { |
rkuo2000 | 0:5e40d147a8e1 | 3 | public: |
rkuo2000 | 0:5e40d147a8e1 | 4 | void drawLine(int x1, int y1, int x2, int y2, int fgColor, int bgColor); |
rkuo2000 | 0:5e40d147a8e1 | 5 | void drawCircle(int xc, int yc, int r, int fgColor, int bgColor); |
rkuo2000 | 0:5e40d147a8e1 | 6 | void drawRectangle(int x0, int y0, int x1, int y1, int fgColor, int bgColor); |
rkuo2000 | 0:5e40d147a8e1 | 7 | void drawTriangle(int x0, int y0, int x1, int y1, int x2, int y2, int fgColor, int bgColor); |
rkuo2000 | 0:5e40d147a8e1 | 8 | }; |
rkuo2000 | 0:5e40d147a8e1 | 9 |