Library for interfacing to Nokia 5110 LCD display with Image Loader (as found on the SparkFun website).
Diff: N5110.h
- Revision:
- 36:00ebd449b6f3
- Parent:
- 35:2d5931a66fba
- Child:
- 37:c708b92609aa
diff -r 2d5931a66fba -r 00ebd449b6f3 N5110.h --- 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