Skip to content

Instantly share code, notes, and snippets.

@bsantraigi
Created June 14, 2014 10:22
Show Gist options
  • Save bsantraigi/26633ac257559788ecfe to your computer and use it in GitHub Desktop.
Save bsantraigi/26633ac257559788ecfe to your computer and use it in GitHub Desktop.
/*
* character_map.h
*
* Created: 6/12/2014 3:49:06 PM
* Author: [email protected]
*/
#include <avr/io.h>
#include <avr/pgmspace.h>
#include <inttypes.h>
#ifndef CHARACTER_MAP_H_
#define CHARACTER_MAP_H_
const uint8_t Arial12[76][5] PROGMEM = {
{0b01000000,0b00100000,0b00010000,0b00001000,0b00000100}, ///
{0b01111100,0b10000010,0b10000010,0b10000010,0b01111100}, //0
{0b00000000,0b10000100,0b11111110,0b10000000,0b00000000}, //1
{0b10000100,0b11000010,0b10100010,0b10010010,0b10001100}, //2
{0b01000110,0b10000010,0b10010010,0b10011010,0b01100110}, //3
{0b00111110,0b00100000,0b00100000,0b00100000,0b11111110}, //4
{0b01011110,0b10010010,0b10001010,0b10001010,0b01110010}, //5
{0b01111100,0b10100010,0b10010010,0b10010010,0b01100100}, //6
{0b10000010,0b01000010,0b00100010,0b00010010,0b00001110}, //7
{0b01101100,0b10010010,0b10010010,0b10010010,0b01101100}, //8
{0b00001100,0b10010010,0b01010010,0b00110010,0b00011100}, //9
{0b00000000,0b00000000,0b11000110,0b00000000,0b00000000}, //:
{0b00000000,0b00000000,0b10110110,0b11110110,0b00000000}, //;
{0b00010000,0b00101000,0b01000100,0b10000010,0b10000010}, //<
{0b00101000,0b00101000,0b00101000,0b00101000,0b00101000}, //=
{0b10000010,0b10000010,0b01000100,0b00101000,0b00010000}, //>
{0b00000100,0b00000010,0b10100010,0b00010010,0b00001100}, //?
{0b01111110,0b10000001,0b10111101,0b10100101,0b00011110}, //@
{0b11111000,0b00100100,0b00100010,0b00100100,0b11111000}, //A
{0b11111110,0b10010010,0b10010010,0b10010010,0b01101100}, //B
{0b01111100,0b10000010,0b10000010,0b10000010,0b01000100}, //C
{0b11111110,0b10000010,0b10000010,0b10000010,0b01111100}, //D
{0b11111110,0b10010010,0b10010010,0b10010010,0b10000010}, //E
{0b11111110,0b00010010,0b00010010,0b00010010,0b00000010}, //F
{0b01111100,0b10000010,0b10000010,0b10100010,0b11100010}, //G
{0b11111110,0b00010000,0b00010000,0b00010000,0b11111110}, //H
{0b00000000,0b10000010,0b11111110,0b10000010,0b00000000}, //I
{0b01000000,0b10000000,0b10000000,0b10000000,0b01111110}, //J
{0b11111110,0b00010000,0b00101000,0b01000100,0b10000010}, //K
{0b11111110,0b10000000,0b10000000,0b10000000,0b10000000}, //L
{0b11111110,0b00000100,0b00011000,0b00000100,0b11111110}, //M
{0b11111110,0b00001000,0b00010000,0b00100000,0b11111110}, //N
{0b01111100,0b10000010,0b10000010,0b10000010,0b01111100}, //O
{0b11111110,0b00010010,0b00010010,0b00010010,0b00001100}, //P
{0b01111100,0b10000010,0b10100010,0b01000010,0b10111100}, //Q
{0b11111110,0b00010010,0b00110010,0b01010010,0b10001100}, //R
{0b01001100,0b10010010,0b10010010,0b10010010,0b01100100}, //S
{0b00000010,0b00000010,0b11111110,0b00000010,0b00000010}, //T
{0b01111110,0b10000000,0b10000000,0b10000000,0b01111110}, //U
{0b00111110,0b01000000,0b10000000,0b01000000,0b00111110}, //V
{0b11111110,0b01000000,0b00110000,0b01000000,0b11111110}, //W
{0b11000110,0b00101000,0b00010000,0b00101000,0b11000110}, //X
{0b00000110,0b00001000,0b11110000,0b00001000,0b00000110}, //Y
{0b11000010,0b10100010,0b10010010,0b10001010,0b10000110}, //Z
{0b11111110,0b11111110,0b10000010,0b10000010,0b00000000}, //[
{0b00000100,0b00001000,0b00010000,0b00100000,0b01000000}, //\/
{0b00000000,0b10000010,0b10000010,0b11111110,0b11111110}, //]
{0b00100000,0b00010000,0b00001000,0b00010000,0b00100000}, //^
{0b10000000,0b10000000,0b10000000,0b10000000,0b10000000}, //_
{0b00000010,0b00000100,0b00001000,0b00000000,0b00000000}, //`
{0b01100100,0b10010100,0b10010100,0b10010100,0b01111000}, //a
{0b11111110,0b10010000,0b10010000,0b10010000,0b01100000}, //b
{0b01110000,0b10001000,0b10001000,0b10001000,0b10001000}, //c
{0b01110000,0b10001000,0b10001000,0b10001000,0b01111110}, //d
{0b01111100,0b10010010,0b10010010,0b10010010,0b01001100}, //e
{0b11111100,0b00010010,0b00010010,0b00000010,0b00000100}, //f
{0b01001100,0b10010010,0b10010010,0b01010010,0b00111100}, //g
{0b11111110,0b00010000,0b00001000,0b00001000,0b11110000}, //h
{0b00000000,0b00000000,0b11111010,0b00000000,0b00000000}, //i
{0b01100000,0b10000000,0b10000000,0b01111010,0b00000000}, //j
{0b00000000,0b11111110,0b00100000,0b01010000,0b10001000}, //k
{0b00000000,0b00000000,0b11111110,0b10000000,0b00000000}, //l
{0b11111100,0b00001000,0b00110000,0b00001000,0b11111000}, //m
{0b11111100,0b00001000,0b00000100,0b00000100,0b11111000}, //n
{0b01110000,0b10001000,0b10001000,0b10001000,0b01110000}, //o
{0b11111110,0b00100100,0b00100100,0b00100100,0b00011000}, //p
{0b00011000,0b00100100,0b00100100,0b00100100,0b11111110}, //q
{0b11111110,0b00000100,0b00000010,0b00000010,0b00000100}, //r
{0b00010000,0b10101000,0b10101000,0b10101000,0b01000000}, //s
{0b00000000,0b00001000,0b01111110,0b10001000,0b01000000}, //t
{0b01111000,0b10000000,0b10000000,0b01111000,0b10000000}, //u
{0b00111000,0b01000000,0b10000000,0b01000000,0b00111000}, //v
{0b01111000,0b10000000,0b01100000,0b10000000,0b01111000}, //w
{0b10001000,0b01010000,0b00100000,0b01010000,0b10001000}, //x
{0b10001100,0b01010000,0b00100000,0b00010000,0b00001100}, //y
{0b10001000,0b11001000,0b10101000,0b10011000,0b10001000} //z
};
#endif /* CHARACTER_MAP_H_ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment