Port of the Adafruit_GFX library for use in MBED. This is the core graphics library for all Adafruit's displays, providing a common set of graphics primitives (points, lines, circles, strings,bitmaps. etc). Complete details found @ https://github.com/adafruit/Adafruit-GFX-Library Required by Adafruit_PCD8544 Driver. BSD license.

Dependents:   ili9341_test ece495_firmware Adafruit-64x32-PWM-Demo Pong_ILI9163C

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers glcdfont.c Source File


00001 #ifndef FONT5X7_H
00002 #define FONT5X7_H
00004 #ifdef __AVR__
00005  #include <avr/io.h>
00006  #include <avr/pgmspace.h>
00007 #else
00008  #define PROGMEM
00009 #endif
00011 // Standard ASCII 5x7 font
00013 static const unsigned char font[] PROGMEM = {
00014         0x00, 0x00, 0x00, 0x00, 0x00,   
00015     0x3E, 0x5B, 0x4F, 0x5B, 0x3E,   
00016     0x3E, 0x6B, 0x4F, 0x6B, 0x3E,   
00017     0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 
00018     0x18, 0x3C, 0x7E, 0x3C, 0x18, 
00019     0x1C, 0x57, 0x7D, 0x57, 0x1C, 
00020     0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 
00021     0x00, 0x18, 0x3C, 0x18, 0x00, 
00022     0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 
00023     0x00, 0x18, 0x24, 0x18, 0x00, 
00024     0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 
00025     0x30, 0x48, 0x3A, 0x06, 0x0E, 
00026     0x26, 0x29, 0x79, 0x29, 0x26, 
00027     0x40, 0x7F, 0x05, 0x05, 0x07, 
00028     0x40, 0x7F, 0x05, 0x25, 0x3F, 
00029     0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 
00030     0x7F, 0x3E, 0x1C, 0x1C, 0x08, 
00031     0x08, 0x1C, 0x1C, 0x3E, 0x7F, 
00032     0x14, 0x22, 0x7F, 0x22, 0x14, 
00033     0x5F, 0x5F, 0x00, 0x5F, 0x5F, 
00034     0x06, 0x09, 0x7F, 0x01, 0x7F, 
00035     0x00, 0x66, 0x89, 0x95, 0x6A, 
00036     0x60, 0x60, 0x60, 0x60, 0x60, 
00037     0x94, 0xA2, 0xFF, 0xA2, 0x94, 
00038     0x08, 0x04, 0x7E, 0x04, 0x08, 
00039     0x10, 0x20, 0x7E, 0x20, 0x10, 
00040     0x08, 0x08, 0x2A, 0x1C, 0x08, 
00041     0x08, 0x1C, 0x2A, 0x08, 0x08, 
00042     0x1E, 0x10, 0x10, 0x10, 0x10, 
00043     0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 
00044     0x30, 0x38, 0x3E, 0x38, 0x30, 
00045     0x06, 0x0E, 0x3E, 0x0E, 0x06, 
00046     0x00, 0x00, 0x00, 0x00, 0x00, 
00047     0x00, 0x00, 0x5F, 0x00, 0x00, 
00048     0x00, 0x07, 0x00, 0x07, 0x00, 
00049     0x14, 0x7F, 0x14, 0x7F, 0x14, 
00050     0x24, 0x2A, 0x7F, 0x2A, 0x12, 
00051     0x23, 0x13, 0x08, 0x64, 0x62, 
00052     0x36, 0x49, 0x56, 0x20, 0x50, 
00053     0x00, 0x08, 0x07, 0x03, 0x00, 
00054     0x00, 0x1C, 0x22, 0x41, 0x00, 
00055     0x00, 0x41, 0x22, 0x1C, 0x00, 
00056     0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 
00057     0x08, 0x08, 0x3E, 0x08, 0x08, 
00058     0x00, 0x80, 0x70, 0x30, 0x00, 
00059     0x08, 0x08, 0x08, 0x08, 0x08, 
00060     0x00, 0x00, 0x60, 0x60, 0x00, 
00061     0x20, 0x10, 0x08, 0x04, 0x02, 
00062     0x3E, 0x51, 0x49, 0x45, 0x3E, 
00063     0x00, 0x42, 0x7F, 0x40, 0x00, 
00064     0x72, 0x49, 0x49, 0x49, 0x46, 
00065     0x21, 0x41, 0x49, 0x4D, 0x33, 
00066     0x18, 0x14, 0x12, 0x7F, 0x10, 
00067     0x27, 0x45, 0x45, 0x45, 0x39, 
00068     0x3C, 0x4A, 0x49, 0x49, 0x31, 
00069     0x41, 0x21, 0x11, 0x09, 0x07, 
00070     0x36, 0x49, 0x49, 0x49, 0x36, 
00071     0x46, 0x49, 0x49, 0x29, 0x1E, 
00072     0x00, 0x00, 0x14, 0x00, 0x00, 
00073     0x00, 0x40, 0x34, 0x00, 0x00, 
00074     0x00, 0x08, 0x14, 0x22, 0x41, 
00075     0x14, 0x14, 0x14, 0x14, 0x14, 
00076     0x00, 0x41, 0x22, 0x14, 0x08, 
00077     0x02, 0x01, 0x59, 0x09, 0x06, 
00078     0x3E, 0x41, 0x5D, 0x59, 0x4E, 
00079     0x7C, 0x12, 0x11, 0x12, 0x7C, 
00080     0x7F, 0x49, 0x49, 0x49, 0x36, 
00081     0x3E, 0x41, 0x41, 0x41, 0x22, 
00082     0x7F, 0x41, 0x41, 0x41, 0x3E, 
00083     0x7F, 0x49, 0x49, 0x49, 0x41, 
00084     0x7F, 0x09, 0x09, 0x09, 0x01, 
00085     0x3E, 0x41, 0x41, 0x51, 0x73, 
00086     0x7F, 0x08, 0x08, 0x08, 0x7F, 
00087     0x00, 0x41, 0x7F, 0x41, 0x00, 
00088     0x20, 0x40, 0x41, 0x3F, 0x01, 
00089     0x7F, 0x08, 0x14, 0x22, 0x41, 
00090     0x7F, 0x40, 0x40, 0x40, 0x40, 
00091     0x7F, 0x02, 0x1C, 0x02, 0x7F, 
00092     0x7F, 0x04, 0x08, 0x10, 0x7F, 
00093     0x3E, 0x41, 0x41, 0x41, 0x3E, 
00094     0x7F, 0x09, 0x09, 0x09, 0x06, 
00095     0x3E, 0x41, 0x51, 0x21, 0x5E, 
00096     0x7F, 0x09, 0x19, 0x29, 0x46, 
00097     0x26, 0x49, 0x49, 0x49, 0x32, 
00098     0x03, 0x01, 0x7F, 0x01, 0x03, 
00099     0x3F, 0x40, 0x40, 0x40, 0x3F, 
00100     0x1F, 0x20, 0x40, 0x20, 0x1F, 
00101     0x3F, 0x40, 0x38, 0x40, 0x3F, 
00102     0x63, 0x14, 0x08, 0x14, 0x63, 
00103     0x03, 0x04, 0x78, 0x04, 0x03, 
00104     0x61, 0x59, 0x49, 0x4D, 0x43, 
00105     0x00, 0x7F, 0x41, 0x41, 0x41, 
00106     0x02, 0x04, 0x08, 0x10, 0x20, 
00107     0x00, 0x41, 0x41, 0x41, 0x7F, 
00108     0x04, 0x02, 0x01, 0x02, 0x04, 
00109     0x40, 0x40, 0x40, 0x40, 0x40, 
00110     0x00, 0x03, 0x07, 0x08, 0x00, 
00111     0x20, 0x54, 0x54, 0x78, 0x40, 
00112     0x7F, 0x28, 0x44, 0x44, 0x38, 
00113     0x38, 0x44, 0x44, 0x44, 0x28, 
00114     0x38, 0x44, 0x44, 0x28, 0x7F, 
00115     0x38, 0x54, 0x54, 0x54, 0x18, 
00116     0x00, 0x08, 0x7E, 0x09, 0x02, 
00117     0x18, 0xA4, 0xA4, 0x9C, 0x78, 
00118     0x7F, 0x08, 0x04, 0x04, 0x78, 
00119     0x00, 0x44, 0x7D, 0x40, 0x00, 
00120     0x20, 0x40, 0x40, 0x3D, 0x00, 
00121     0x7F, 0x10, 0x28, 0x44, 0x00, 
00122     0x00, 0x41, 0x7F, 0x40, 0x00, 
00123     0x7C, 0x04, 0x78, 0x04, 0x78, 
00124     0x7C, 0x08, 0x04, 0x04, 0x78, 
00125     0x38, 0x44, 0x44, 0x44, 0x38, 
00126     0xFC, 0x18, 0x24, 0x24, 0x18, 
00127     0x18, 0x24, 0x24, 0x18, 0xFC, 
00128     0x7C, 0x08, 0x04, 0x04, 0x08, 
00129     0x48, 0x54, 0x54, 0x54, 0x24, 
00130     0x04, 0x04, 0x3F, 0x44, 0x24, 
00131     0x3C, 0x40, 0x40, 0x20, 0x7C, 
00132     0x1C, 0x20, 0x40, 0x20, 0x1C, 
00133     0x3C, 0x40, 0x30, 0x40, 0x3C, 
00134     0x44, 0x28, 0x10, 0x28, 0x44, 
00135     0x4C, 0x90, 0x90, 0x90, 0x7C, 
00136     0x44, 0x64, 0x54, 0x4C, 0x44, 
00137     0x00, 0x08, 0x36, 0x41, 0x00, 
00138     0x00, 0x00, 0x77, 0x00, 0x00, 
00139     0x00, 0x41, 0x36, 0x08, 0x00, 
00140     0x02, 0x01, 0x02, 0x04, 0x02, 
00141     0x3C, 0x26, 0x23, 0x26, 0x3C, 
00142     0x1E, 0xA1, 0xA1, 0x61, 0x12, 
00143     0x3A, 0x40, 0x40, 0x20, 0x7A, 
00144     0x38, 0x54, 0x54, 0x55, 0x59, 
00145     0x21, 0x55, 0x55, 0x79, 0x41, 
00146     0x22, 0x54, 0x54, 0x78, 0x42, // a-umlaut
00147     0x21, 0x55, 0x54, 0x78, 0x40, 
00148     0x20, 0x54, 0x55, 0x79, 0x40, 
00149     0x0C, 0x1E, 0x52, 0x72, 0x12, 
00150     0x39, 0x55, 0x55, 0x55, 0x59, 
00151     0x39, 0x54, 0x54, 0x54, 0x59, 
00152     0x39, 0x55, 0x54, 0x54, 0x58, 
00153     0x00, 0x00, 0x45, 0x7C, 0x41, 
00154     0x00, 0x02, 0x45, 0x7D, 0x42, 
00155     0x00, 0x01, 0x45, 0x7C, 0x40, 
00156     0x7D, 0x12, 0x11, 0x12, 0x7D, // A-umlaut
00157     0xF0, 0x28, 0x25, 0x28, 0xF0, 
00158     0x7C, 0x54, 0x55, 0x45, 0x00, 
00159     0x20, 0x54, 0x54, 0x7C, 0x54, 
00160     0x7C, 0x0A, 0x09, 0x7F, 0x49, 
00161     0x32, 0x49, 0x49, 0x49, 0x32, 
00162     0x3A, 0x44, 0x44, 0x44, 0x3A, // o-umlaut
00163     0x32, 0x4A, 0x48, 0x48, 0x30, 
00164     0x3A, 0x41, 0x41, 0x21, 0x7A, 
00165     0x3A, 0x42, 0x40, 0x20, 0x78, 
00166     0x00, 0x9D, 0xA0, 0xA0, 0x7D, 
00167     0x3D, 0x42, 0x42, 0x42, 0x3D, // O-umlaut
00168     0x3D, 0x40, 0x40, 0x40, 0x3D, 
00169     0x3C, 0x24, 0xFF, 0x24, 0x24, 
00170     0x48, 0x7E, 0x49, 0x43, 0x66, 
00171     0x2B, 0x2F, 0xFC, 0x2F, 0x2B, 
00172     0xFF, 0x09, 0x29, 0xF6, 0x20, 
00173     0xC0, 0x88, 0x7E, 0x09, 0x03, 
00174     0x20, 0x54, 0x54, 0x79, 0x41, 
00175     0x00, 0x00, 0x44, 0x7D, 0x41, 
00176     0x30, 0x48, 0x48, 0x4A, 0x32, 
00177     0x38, 0x40, 0x40, 0x22, 0x7A, 
00178     0x00, 0x7A, 0x0A, 0x0A, 0x72, 
00179     0x7D, 0x0D, 0x19, 0x31, 0x7D, 
00180     0x26, 0x29, 0x29, 0x2F, 0x28, 
00181     0x26, 0x29, 0x29, 0x29, 0x26, 
00182     0x30, 0x48, 0x4D, 0x40, 0x20, 
00183     0x38, 0x08, 0x08, 0x08, 0x08, 
00184     0x08, 0x08, 0x08, 0x08, 0x38, 
00185     0x2F, 0x10, 0xC8, 0xAC, 0xBA, 
00186     0x2F, 0x10, 0x28, 0x34, 0xFA, 
00187     0x00, 0x00, 0x7B, 0x00, 0x00, 
00188     0x08, 0x14, 0x2A, 0x14, 0x22, 
00189     0x22, 0x14, 0x2A, 0x14, 0x08, 
00190     0xAA, 0x00, 0x55, 0x00, 0xAA, 
00191     0xAA, 0x55, 0xAA, 0x55, 0xAA, 
00192     0x00, 0x00, 0x00, 0xFF, 0x00, 
00193     0x10, 0x10, 0x10, 0xFF, 0x00, 
00194     0x14, 0x14, 0x14, 0xFF, 0x00, 
00195     0x10, 0x10, 0xFF, 0x00, 0xFF, 
00196     0x10, 0x10, 0xF0, 0x10, 0xF0, 
00197     0x14, 0x14, 0x14, 0xFC, 0x00, 
00198     0x14, 0x14, 0xF7, 0x00, 0xFF, 
00199     0x00, 0x00, 0xFF, 0x00, 0xFF, 
00200     0x14, 0x14, 0xF4, 0x04, 0xFC, 
00201     0x14, 0x14, 0x17, 0x10, 0x1F, 
00202     0x10, 0x10, 0x1F, 0x10, 0x1F, 
00203     0x14, 0x14, 0x14, 0x1F, 0x00, 
00204     0x10, 0x10, 0x10, 0xF0, 0x00, 
00205     0x00, 0x00, 0x00, 0x1F, 0x10, 
00206     0x10, 0x10, 0x10, 0x1F, 0x10, 
00207     0x10, 0x10, 0x10, 0xF0, 0x10, 
00208     0x00, 0x00, 0x00, 0xFF, 0x10, 
00209     0x10, 0x10, 0x10, 0x10, 0x10, 
00210     0x10, 0x10, 0x10, 0xFF, 0x10, 
00211     0x00, 0x00, 0x00, 0xFF, 0x14, 
00212     0x00, 0x00, 0xFF, 0x00, 0xFF, 
00213     0x00, 0x00, 0x1F, 0x10, 0x17, 
00214     0x00, 0x00, 0xFC, 0x04, 0xF4, 
00215     0x14, 0x14, 0x17, 0x10, 0x17, 
00216     0x14, 0x14, 0xF4, 0x04, 0xF4, 
00217     0x00, 0x00, 0xFF, 0x00, 0xF7, 
00218     0x14, 0x14, 0x14, 0x14, 0x14, 
00219     0x14, 0x14, 0xF7, 0x00, 0xF7, 
00220     0x14, 0x14, 0x14, 0x17, 0x14, 
00221     0x10, 0x10, 0x1F, 0x10, 0x1F, 
00222     0x14, 0x14, 0x14, 0xF4, 0x14, 
00223     0x10, 0x10, 0xF0, 0x10, 0xF0, 
00224     0x00, 0x00, 0x1F, 0x10, 0x1F, 
00225     0x00, 0x00, 0x00, 0x1F, 0x14, 
00226     0x00, 0x00, 0x00, 0xFC, 0x14, 
00227     0x00, 0x00, 0xF0, 0x10, 0xF0, 
00228     0x10, 0x10, 0xFF, 0x10, 0xFF, 
00229     0x14, 0x14, 0x14, 0xFF, 0x14, 
00230     0x10, 0x10, 0x10, 0x1F, 0x00, 
00231     0x00, 0x00, 0x00, 0xF0, 0x10, 
00232     0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 
00233     0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 
00234     0xFF, 0xFF, 0xFF, 0x00, 0x00, 
00235     0x00, 0x00, 0x00, 0xFF, 0xFF, 
00236     0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 
00237     0x38, 0x44, 0x44, 0x38, 0x44, 
00238     0xFC, 0x4A, 0x4A, 0x4A, 0x34, // sharp-s or beta
00239     0x7E, 0x02, 0x02, 0x06, 0x06, 
00240     0x02, 0x7E, 0x02, 0x7E, 0x02, 
00241     0x63, 0x55, 0x49, 0x41, 0x63, 
00242     0x38, 0x44, 0x44, 0x3C, 0x04, 
00243     0x40, 0x7E, 0x20, 0x1E, 0x20, 
00244     0x06, 0x02, 0x7E, 0x02, 0x02, 
00245     0x99, 0xA5, 0xE7, 0xA5, 0x99, 
00246     0x1C, 0x2A, 0x49, 0x2A, 0x1C, 
00247     0x4C, 0x72, 0x01, 0x72, 0x4C, 
00248     0x30, 0x4A, 0x4D, 0x4D, 0x30, 
00249     0x30, 0x48, 0x78, 0x48, 0x30, 
00250     0xBC, 0x62, 0x5A, 0x46, 0x3D, 
00251     0x3E, 0x49, 0x49, 0x49, 0x00, 
00252     0x7E, 0x01, 0x01, 0x01, 0x7E, 
00253     0x2A, 0x2A, 0x2A, 0x2A, 0x2A, 
00254     0x44, 0x44, 0x5F, 0x44, 0x44, 
00255     0x40, 0x51, 0x4A, 0x44, 0x40, 
00256     0x40, 0x44, 0x4A, 0x51, 0x40, 
00257     0x00, 0x00, 0xFF, 0x01, 0x03, 
00258     0xE0, 0x80, 0xFF, 0x00, 0x00, 
00259     0x08, 0x08, 0x6B, 0x6B, 0x08,
00260     0x36, 0x12, 0x36, 0x24, 0x36,
00261     0x06, 0x0F, 0x09, 0x0F, 0x06,
00262     0x00, 0x00, 0x18, 0x18, 0x00,
00263     0x00, 0x00, 0x10, 0x10, 0x00,
00264     0x30, 0x40, 0xFF, 0x01, 0x01,
00265     0x00, 0x1F, 0x01, 0x01, 0x1E,
00266     0x00, 0x19, 0x1D, 0x17, 0x12,
00267     0x00, 0x3C, 0x3C, 0x3C, 0x3C,
00268     0x00, 0x00, 0x00, 0x00, 0x00
00269 };
00270 #endif // FONT5X7_H