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: N5110.h
- Revision:
- 36:00ebd449b6f3
- Parent:
- 35:2d5931a66fba
- Child:
- 37:c708b92609aa
--- a/N5110.h Tue Mar 07 16:46:13 2017 +0000
+++ b/N5110.h Tue Mar 07 16:55:43 2017 +0000
@@ -388,11 +388,20 @@
unsigned int const height,
FillType const fill);
- void drawGlyph(int x0,
- int y0,
- int nx,
- int ny,
- int *glyph);
+ /** Draw Sprite
+ *
+ * This function draws a sprite as defined in a 2D array
+ * @param x0 - x-coordinate of origin (top-left)
+ * @param y0 - y-coordinate of origin (top-left)
+ * @param nrows - number of rows in sprite
+ * @param ncols - number of columns in sprite
+ * @param sprite - 2D array representing the sprite
+ */
+ void drawSprite(int x0,
+ int y0,
+ int nrows,
+ int ncols,
+ int *sprite);
private:
// methods