Created
March 1, 2015 16:13
-
-
Save AverageMarcus/41869e666e7ba253baae to your computer and use it in GitHub Desktop.
Hulk Smash!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "U8glib.h" | |
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NO_ACK); | |
#define Hulk_width 60 | |
#define Hulk_height 60 | |
static unsigned char Hulk_bits[] U8G_PROGMEM = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xf8, 0x9f, 0x01, 0x00, 0xf0, 0xe0, 0x3f, 0x00, 0xf8, 0x9f, 0x01, 0x00, 0xf0, 0xe0, 0x3f, 0x00, 0x06, 0xf0, 0x31, 0x60, 0xf0, 0x1f, 0xc0, 0x01, 0x06, 0xf0, 0x31, 0x60, 0xf0, 0x1f, 0xc0, 0x01, 0x06, 0xf0, 0xc1, 0x60, 0x30, 0x00, 0xc0, 0x01, 0x06, 0xf0, 0xc1, 0x60, 0x30, 0x00, 0xc0, 0x01, 0x06, 0xf0, 0x01, 0x00, 0x30, 0x00, 0xc0, 0x01, 0x06, 0xf0, 0x01, 0x00, 0x30, 0x00, 0xc0, 0x01, 0x06, 0xf0, 0xf1, 0x7f, 0x30, 0x07, 0xf0, 0x01, 0x06, 0x70, 0xf0, 0x7f, 0x30, 0x07, 0x30, 0x00, 0x06, 0x70, 0xf0, 0x7f, 0x30, 0x07, 0x30, 0x00, 0x38, 0x70, 0x00, 0x80, 0xf1, 0x07, 0x30, 0x00, 0x38, 0x70, 0x00, 0x80, 0xf1, 0x07, 0x30, 0x00, 0xf8, 0xf0, 0x01, 0x00, 0x3e, 0x07, 0xc0, 0x01, 0xf8, 0xf0, 0x01, 0x00, 0x3e, 0x07, 0xc0, 0x01, 0x38, 0xf8, 0xff, 0xff, 0x0f, 0xff, 0xc0, 0x07, 0x38, 0xf8, 0xff, 0xff, 0x0f, 0xff, 0xc0, 0x07, 0x3e, 0xf0, 0x01, 0x07, 0x00, 0x18, 0x30, 0x07, 0x3e, 0xf0, 0x01, 0x07, 0x00, 0x18, 0x30, 0x07, 0x06, 0xf8, 0x01, 0x07, 0x00, 0xf8, 0x00, 0x07, 0x06, 0xf8, 0x01, 0x07, 0x00, 0xf8, 0x00, 0x07, 0x06, 0x80, 0xf1, 0xf8, 0x0f, 0x1f, 0x00, 0x07, 0x06, 0x80, 0xf1, 0xf8, 0x0f, 0x1f, 0x00, 0x07, 0x06, 0x80, 0xf1, 0xf8, 0xcf, 0x1f, 0x00, 0x07, 0x06, 0x80, 0x01, 0x00, 0xc0, 0x07, 0x00, 0x07, 0x06, 0x80, 0x01, 0x00, 0xc0, 0x07, 0x00, 0x07, 0x06, 0x80, 0xff, 0xff, 0xff, 0xe7, 0x0f, 0x07, 0x06, 0x80, 0xff, 0xff, 0xff, 0xe7, 0x0f, 0x07, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x30, 0x07, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x30, 0x07, 0x38, 0xf8, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0x01, 0x38, 0xf8, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0x01, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0xf7, 0xff, 0x80, 0xff, 0xe7, 0x00, 0x00, 0xc0, 0xe7, 0xff, 0x80, 0xff, 0xe7, 0x01, 0x00, 0xc0, 0x07, 0x0e, 0x00, 0x3e, 0xe0, 0x01, 0x00, 0xc0, 0x07, 0x0e, 0x00, 0x3e, 0xe0, 0x01, 0x00, 0xf8, 0x00, 0x30, 0x00, 0x0e, 0x00, 0x0e, 0x00, 0xf8, 0x00, 0x30, 0x00, 0x0e, 0x00, 0x0e, 0x00, 0xf8, 0xff, 0x3f, 0x00, 0xfe, 0xff, 0x0f, 0x00, 0xf8, 0xff, 0x3f, 0x00, 0xfe, 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; | |
void setup(void) { | |
} | |
void loop(void) { | |
u8g.firstPage(); | |
do { | |
u8g.drawXBMP( 128/2-(Hulk_width / 2), 64/2-(Hulk_height/2), Hulk_width, Hulk_height, Hulk_bits); | |
} while( u8g.nextPage() ); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment