f
Dependencies: mbed 4DGL-uLCD-SE MMA8452
graphics.cpp
- Committer:
- dfrausto3
- Date:
- 2022-04-12
- Revision:
- 6:453dc852ac0f
- Parent:
- 0:8e3b9bb1084a
File content as of revision 6:453dc852ac0f:
#include "graphics.h" #include "globals.h" //Example sprite, DON'T USE THIS SPRITE!! void draw_sprite() { int new_piskel_data[256] = { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0xffd000ff, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0xffd000ff, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffd000ff, 0xffd000ff, 0xffd000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 }; uLCD.BLIT(0,0,16,16, new_piskel_data); } /* * Helper function to differentiate where the * keyboard is on the screen. */ void draw_lower_status() { // Draw top border of status bar uLCD.line(0, 118, 127, 118, GREEN); // Add other status info drawing code here }