SSD1308 128x64 OLED Driver with I2C interface
Dependents: sense xadow_m0_ada_gps xadow_m0_SD_Hello sense-DHT11 ... more
See http://mbed.org/users/wim/notebook/oled-display-with-ssd1308-driver/#c6729
font_16x24.h@3:fa18169dd7e6, 2012-07-23 (annotated)
- Committer:
- wim
- Date:
- Mon Jul 23 20:24:11 2012 +0000
- Revision:
- 3:fa18169dd7e6
- Parent:
- 0:300d08d9b058
Added Docs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wim | 0:300d08d9b058 | 1 | |
wim | 0:300d08d9b058 | 2 | #ifndef _FONT_16x24_H_ |
wim | 0:300d08d9b058 | 3 | #define _FONT_16x24_H_ |
wim | 0:300d08d9b058 | 4 | |
wim | 0:300d08d9b058 | 5 | //----- DEFINES ----- |
wim | 0:300d08d9b058 | 6 | #define FONT16x24_START 0x20 |
wim | 0:300d08d9b058 | 7 | #define FONT16x24_END 0x44 |
wim | 0:300d08d9b058 | 8 | #define FONT16x24_WIDTH 11 |
wim | 0:300d08d9b058 | 9 | #define FONT16x24_HEIGHT 24 |
wim | 0:300d08d9b058 | 10 | #define FONT16x24_BYTES 3 |
wim | 0:300d08d9b058 | 11 | |
wim | 0:300d08d9b058 | 12 | //Used for displaying numbers 0 - 9 and '+', '-', '.' |
wim | 0:300d08d9b058 | 13 | |
wim | 0:300d08d9b058 | 14 | const uint8_t font_16x24[36][3][11] = |
wim | 0:300d08d9b058 | 15 | { |
wim | 0:300d08d9b058 | 16 | |
wim | 0:300d08d9b058 | 17 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x20 |
wim | 0:300d08d9b058 | 18 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x21 |
wim | 0:300d08d9b058 | 19 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x22 |
wim | 0:300d08d9b058 | 20 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x23 |
wim | 0:300d08d9b058 | 21 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x24 |
wim | 0:300d08d9b058 | 22 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x25 |
wim | 0:300d08d9b058 | 23 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x26 |
wim | 0:300d08d9b058 | 24 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x27 |
wim | 0:300d08d9b058 | 25 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x28 |
wim | 0:300d08d9b058 | 26 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x29 |
wim | 0:300d08d9b058 | 27 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x2A |
wim | 0:300d08d9b058 | 28 | |
wim | 0:300d08d9b058 | 29 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,64,64,64,254,254,64,64 , 0,0,0,0,0,0,0,15,15,0,0 ,// '+'// 0x2B |
wim | 0:300d08d9b058 | 30 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// // 0x2C |
wim | 0:300d08d9b058 | 31 | |
wim | 0:300d08d9b058 | 32 | 0,0,0,0,0,0,0,0,0,0,0 , 0,64,64,64,64,64,64,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// '-'// 0x2D |
wim | 0:300d08d9b058 | 33 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,60,60,60,0,0,0,0,0 ,// '.'// 0x2E |
wim | 0:300d08d9b058 | 34 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x2F |
wim | 0:300d08d9b058 | 35 | |
wim | 0:300d08d9b058 | 36 | 0,128,192,224,224,96,224,224,192,128,0 , 112,255,255,1,0,0,0,0,255,255,254 , 0,15,31,60,56,48,56,56,31,15,3 , //'0' 0x30 |
wim | 0:300d08d9b058 | 37 | 0,0,0,0,128,224,224,0,0,0,0 , 0,0,3,3,3,255,255,0,0,0,0 , 0,0,56,56,56,63,63,56,56,56,0 , //'1' 0x31 |
wim | 0:300d08d9b058 | 38 | 0,192,192,224,96,96,224,224,192,128,0 , 0,1,0,0,128,192,224,249,63,31,0 , 0,60,62,63,63,59,57,56,56,56,56 , //'2' 0x32 |
wim | 0:300d08d9b058 | 39 | 0,192,224,224,96,96,224,224,192,192,0 , 0,1,0,0,48,48,56,125,239,207,0 , 0,28,56,56,48,48,56,60,31,15,1 , //'3' 0x33 |
wim | 0:300d08d9b058 | 40 | 0,0,0,0,0,128,192,224,224,0,0 , 224,240,248,222,207,199,193,255,255,192,192 , 0,0,0,0,0,0,0,63,63,0,0 , //'4' 0x34 |
wim | 0:300d08d9b058 | 41 | 0,224,224,224,224,224,224,224,224,224,224 , 0,63,63,63,56,56,48,112,240,224,0 , 0,28,56,56,48,48,56,60,31,15,1 , //'5' 0x35 |
wim | 0:300d08d9b058 | 42 | 0,0,128,192,192,224,96,96,224,224,0 , 224,254,255,55,57,24,24,56,240,240,192 , 0,15,31,28,56,48,48,56,31,15,7 , //'6' 0x36 |
wim | 0:300d08d9b058 | 43 | 0,224,224,224,224,224,224,224,224,224,224 , 0,0,0,0,128,224,248,126,31,7,1 , 0,0,56,62,31,7,1,0,0,0,0 , //'7' 0x37 |
wim | 0:300d08d9b058 | 44 | 0,128,192,224,224,96,96,224,192,192,0 , 0,207,255,127,56,48,112,112,255,239,199 , 3,15,31,60,56,48,48,56,31,31,15 , //'8' 0x38 |
wim | 0:300d08d9b058 | 45 | 0,128,192,224,224,96,224,224,192,128,0 , 12,63,127,241,224,192,192,225,255,255,254 , 0,0,56,48,48,56,56,30,15,7,0 , //'9' 0x39 |
wim | 0:300d08d9b058 | 46 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3A |
wim | 0:300d08d9b058 | 47 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3B |
wim | 0:300d08d9b058 | 48 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3C |
wim | 0:300d08d9b058 | 49 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3D |
wim | 0:300d08d9b058 | 50 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3E |
wim | 0:300d08d9b058 | 51 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3F |
wim | 0:300d08d9b058 | 52 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x40 |
wim | 0:300d08d9b058 | 53 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x41 |
wim | 0:300d08d9b058 | 54 | 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x42 |
wim | 0:300d08d9b058 | 55 | 0,128,192,224,224,96,224,224,192,128,0 , 112,112,112,1,0,0,0,0,112,112,112 , 0,0,0,0,0,0,0,0,0,0,0 //'C' 0x43 |
wim | 0:300d08d9b058 | 56 | }; |
wim | 0:300d08d9b058 | 57 | |
wim | 0:300d08d9b058 | 58 | #endif |