f
Dependencies: mbed 4DGL-uLCD-SE MMA8452
Diff: graphics.h
- Revision:
- 0:8e3b9bb1084a
- Child:
- 5:077b66dfe296
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphics.h Thu Mar 10 05:18:13 2022 +0000 @@ -0,0 +1,18 @@ +#ifndef GRAPHICS_H +#define GRAPHICS_H +#include "globals.h" + + +// The bottom of the screen => y=127 +// Gut the landscape grow up from the bottom of the screen. It is awkward. +// Thus, we use a macro to reverse the coordinate for convenience. +#define REVERSE_Y(x) (SIZE_Y-(x)) + +/** + * Draws a sprite + */ +void draw_sprite(); +void draw_lower_status(); + + +#endif // GRAPHICS_H