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.
Fork of N5110 by
Diff: N5110.h
- Revision:
- 20:9a847cf7585d
- Parent:
- 19:ba8addc061ea
- Child:
- 21:837ccf2bb6d3
diff -r ba8addc061ea -r 9a847cf7585d N5110.h --- a/N5110.h Thu Apr 23 18:57:52 2015 +0000 +++ b/N5110.h Tue May 03 10:37:11 2016 +0000 @@ -313,8 +313,40 @@ * @param fill - 0 transparent (w/outline), 1 filled black, 2 filled white (wo/outline) */ void drawRect(int x0,int y0,int width,int height,int fill); + + /** Draw Car + * + * This function draws a car. + * @param x0 - x-coordinate of origin (top-left) + * @param y0 - y-coordinate of origin (top-left) + * @param fill - 0 transparent (w/outline), 1 filled black, 2 filled white (wo/outline) + */ + void drawCar (int x0,int y0,int fill); - + /** Draw Heart Life + * + * This function draws a car. + * @param x0 - x-coordinate of origin (top-left) + * @param y0 - y-coordinate of origin (top-left) + * @param fill - 0 transparent (w/outline), 1 filled black, 2 filled white (wo/outline) + */ + void drawHeart (int x0,int y0,int value,int fill); + + /** Write Score Name + * + * This function write down a score. + * @param m - x-coordinate of first-letter + * @param my - y-coordinate of first letter + */ + void score(int m,int my); + + /** Write Level Name + * + * This function write down a level. + * @param m - x-coordinate of first-letter + * @param my - y-coordinate of first letter + */ + void level(int x1,int y1); private: void setXYAddress(int x, int y);