Skip to content

Instantly share code, notes, and snippets.

@tobozo
Created August 11, 2018 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobozo/ac8def91f2b51258a91768c535d17bad to your computer and use it in GitHub Desktop.
Save tobozo/ac8def91f2b51258a91768c535d17bad to your computer and use it in GitHub Desktop.
OLED Monochrome XBM Files
/* Icons as seen on the UI demo @ https://www.youtube.com/watch?v=vXq2cyskJHQ */
#define sun_width 17
#define sun_height 15
const uint8_t sun_bits[] = {
0x00,0x01,0x00,0x04,0x41,0x00,0xc8,0x27,0x00,0x20,0x08,0x00,0x10,0x10,0x00,
0x08,0x20,0x00,0x08,0x20,0x00,0x0f,0xe0,0x01,0x08,0x20,0x00,0x08,0x20,0x00,
0x10,0x10,0x00,0x20,0x08,0x00,0xc8,0x27,0x00,0x04,0x41,0x00,0x00,0x01,0x00 };
#define moon_width 17
#define moon_height 15
const uint8_t moon_bits[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x04,0x00,0x70,0x00,0x00,0xe0,0x08,0x00,
0xc0,0x1d,0x00,0xc0,0x09,0x00,0xc0,0x01,0x00,0xc0,0x01,0x00,0xc0,0x05,0x00,
0xe0,0x00,0x00,0x70,0x40,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 };
#define cloud_width 22
#define cloud_height 16
const uint8_t cloud_bits[] = {
0x00,0x3c,0x00,0x00,0xfe,0x01,0xc0,0xff,0x03,0xe0,0xff,0x03,0xe0,0xff,0x0f,
0xfc,0xff,0x1f,0xfe,0xff,0x3f,0xff,0xff,0x3f,0xff,0xff,0x3f,0xff,0xff,0x3f,
0xfe,0xff,0x1f,0xfc,0xff,0x0f,0x00,0x00,0x00,0x08,0x21,0x02,0x84,0x10,0x01,
0x42,0x88,0x00 };
#define cloud_norain_width 22
#define cloud_norain_height 16
const uint8_t cloud_norain_bits[] = {
0x00,0x3c,0x00,0x00,0xfe,0x01,0xc0,0xff,0x03,0xe0,0xff,0x03,0xe0,0xff,0x0f,
0xfc,0xff,0x1f,0xfe,0xff,0x3f,0xff,0xff,0x3f,0xff,0xff,0x3f,0xff,0xff,0x3f,
0xfe,0xff,0x1f,0xfc,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00 };
#define cloud_light_width 22
#define cloud_light_height 16
const uint8_t cloud_light_bits[] = {
0x00,0x3c,0x00,0x00,0xe6,0x01,0xc0,0x03,0x03,0x60,0x00,0x02,0x20,0x00,0x0e,
0x3c,0x00,0x18,0x06,0x00,0x30,0x03,0x00,0x20,0x01,0x00,0x20,0x03,0x00,0x30,
0x06,0x00,0x18,0xfc,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00 };
#define cloud_lighter_width 22
#define cloud_lighter_height 16
const uint8_t cloud_lighter_bits[] = {
0x00,0x3c,0x00,0x00,0xc2,0x01,0xc0,0x01,0x02,0x20,0x00,0x02,0x20,0x00,0x0c,
0x1c,0x00,0x10,0x02,0x00,0x20,0x01,0x00,0x20,0x01,0x00,0x20,0x01,0x00,0x20,
0x02,0x00,0x10,0xfc,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00 };
#define zap_width 14
#define zap_height 21
const uint8_t zap_bits[] = {
0xe0,0x3f,0xf0,0x1f,0xf0,0x0f,0xf8,0x07,0xf8,0x03,0xfc,0x01,0xfc,0x1f,0xfe,
0x0f,0xfe,0x07,0xff,0x03,0xff,0x03,0xf0,0x01,0xf0,0x00,0x78,0x00,0x38,0x00,
0x1c,0x00,0x0c,0x00,0x0e,0x00,0x06,0x00,0x03,0x00,0x01,0x00 };
#define hurricane_width 16
#define hurricane_height 16
const uint8_t hurricane_bits[] = {
0xd0,0x00,0x00,0x11,0x00,0x02,0x20,0x66,0xf8,0x44,0x8e,0x47,0x62,0x25,0x21,
0x36,0x70,0x1a,0x59,0x0f,0xc8,0x80,0x98,0x41,0x10,0x33,0x10,0x0c,0x20,0x00,
0x20,0x00 };
#define snowflake_width 14
#define snowflake_height 12
const uint8_t snowflake_bits[] = {
0xe0,0x01,0xc4,0x08,0xc7,0x38,0xec,0x0d,0x1b,0x36,0xe0,0x01,0xe0,0x01,0x1b,
0x36,0xec,0x0d,0xc7,0x38,0xc4,0x08,0xe0,0x01 };
#define tux_width 16 // tux by tix
#define tux_height 16
const uint8_t tux_bits[] = {
0x30,0x0c,0x18,0x18,0x08,0x10,0x68,0x13,0x48,0x32,0xee,0xe0,0xf1,0x83,0x00,
0x04,0xe1,0x87,0xf6,0xe7,0xf2,0x47,0xc3,0x40,0xd5,0x4a,0xbd,0x5e,0x3b,0x5e,
0x02,0x6c };
#define win_width 13
#define win_height 13
const uint8_t win_bits[] = {
0x00,0x1d,0xda,0x1f,0xdf,0x1f,0xdf,0x1f,0xdf,0x1f,0xdf,0x1f,0x00,0x00,0xdf,
0x1f,0xdf,0x1f,0xdf,0x1f,0xdf,0x1f,0xda,0x1f,0x00,0x1a };
#define apple_width 10
#define apple_height 12
const uint8_t apple_bits[] = {
0x40,0x00,0x60,0x00,0x00,0x00,0xee,0x03,0xff,0x01,0xff,0x00,0xff,0x00,0xff,
0x01,0xff,0x03,0xfe,0x03,0xfe,0x01,0xcc,0x00 };
#define invader_width 11
#define invader_height 8
const uint8_t invader_bits[] = {
0x08,0x01,0x90,0x00,0xf8,0x01,0x6c,0x03,0xfe,0x07,0xfa,0x05,0x0a,0x05,0x90,
0x00 };
#define dusty_width 16
#define dusty_height 16
const uint8_t dusty_bits[] = {
0x20,0x09,0xe8,0x07,0xfa,0x5f,0xfc,0x3f,0xfd,0xbf,0x8e,0x71,0xae,0x75,0x8f,
0xf1,0xfe,0x7f,0xfe,0x7f,0xff,0xff,0xfc,0x3f,0xfe,0x1f,0xf8,0x3f,0xe4,0x17,
0x90,0x04 };
#define drop_width 4
#define drop_height 6
const uint8_t drop_bits[] = {
0x01,0x03,0x05,0x09,0x09,0x0e };
#define dry_width 13
#define dry_height 13
const uint8_t dry_bits[] = {
0x00,0x00,0x00,0x00,0x48,0x02,0x48,0x02,0x24,0x01,0x24,0x01,0x48,0x02,0x48,
0x02,0x24,0x01,0x24,0x01,0x48,0x02,0x48,0x02,0x00,0x00 };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment