f
Dependencies: mbed 4DGL-uLCD-SE MMA8452
graphics.h@5:077b66dfe296, 2022-03-14 (annotated)
- Committer:
- lwills
- Date:
- Mon Mar 14 23:38:03 2022 +0000
- Revision:
- 5:077b66dfe296
- Parent:
- 0:8e3b9bb1084a
added more documentation
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 |