f
Dependencies: mbed 4DGL-uLCD-SE MMA8452
graphics.h@6:453dc852ac0f, 2022-04-12 (annotated)
- Committer:
- dfrausto3
- Date:
- Tue Apr 12 01:39:20 2022 +0000
- Revision:
- 6:453dc852ac0f
- Parent:
- 5:077b66dfe296
f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lballard9 | 0:8e3b9bb1084a | 1 | #ifndef GRAPHICS_H |
lballard9 | 0:8e3b9bb1084a | 2 | #define GRAPHICS_H |
lballard9 | 0:8e3b9bb1084a | 3 | #include "globals.h" |
lballard9 | 0:8e3b9bb1084a | 4 | |
lballard9 | 0:8e3b9bb1084a | 5 | |
lballard9 | 0:8e3b9bb1084a | 6 | // The bottom of the screen => y=127 |
lwills | 5:077b66dfe296 | 7 | // A macro to reverse the coordinate for convenience (optional). |
lballard9 | 0:8e3b9bb1084a | 8 | #define REVERSE_Y(x) (SIZE_Y-(x)) |
lballard9 | 0:8e3b9bb1084a | 9 | |
lballard9 | 0:8e3b9bb1084a | 10 | /** |
lballard9 | 0:8e3b9bb1084a | 11 | * Draws a sprite |
lballard9 | 0:8e3b9bb1084a | 12 | */ |
lballard9 | 0:8e3b9bb1084a | 13 | void draw_sprite(); |
lballard9 | 0:8e3b9bb1084a | 14 | void draw_lower_status(); |
lballard9 | 0:8e3b9bb1084a | 15 | |
lballard9 | 0:8e3b9bb1084a | 16 | |
lballard9 | 0:8e3b9bb1084a | 17 | #endif // GRAPHICS_H |