P10
led_half_1.h@0:3d89509fadb7, 2019-09-16 (annotated)
- Committer:
- shivanandgowdakr
- Date:
- Mon Sep 16 15:02:05 2019 +0000
- Revision:
- 0:3d89509fadb7
p10;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shivanandgowdakr | 0:3d89509fadb7 | 1 | /* |
shivanandgowdakr | 0:3d89509fadb7 | 2 | * |
shivanandgowdakr | 0:3d89509fadb7 | 3 | * Arial_14 |
shivanandgowdakr | 0:3d89509fadb7 | 4 | * |
shivanandgowdakr | 0:3d89509fadb7 | 5 | * created with FontCreator |
shivanandgowdakr | 0:3d89509fadb7 | 6 | * written by F. Maximilian Thiele |
shivanandgowdakr | 0:3d89509fadb7 | 7 | * |
shivanandgowdakr | 0:3d89509fadb7 | 8 | * http://www.apetech.de/fontCreator |
shivanandgowdakr | 0:3d89509fadb7 | 9 | * me@apetech.de |
shivanandgowdakr | 0:3d89509fadb7 | 10 | * |
shivanandgowdakr | 0:3d89509fadb7 | 11 | * File Name : Arial14.h |
shivanandgowdakr | 0:3d89509fadb7 | 12 | * Date : 02.05.2008 |
shivanandgowdakr | 0:3d89509fadb7 | 13 | * Font size in bytes : 7788 |
shivanandgowdakr | 0:3d89509fadb7 | 14 | * Font width : 10 |
shivanandgowdakr | 0:3d89509fadb7 | 15 | * Font height : 14 |
shivanandgowdakr | 0:3d89509fadb7 | 16 | * Font first char : 32 |
shivanandgowdakr | 0:3d89509fadb7 | 17 | * Font last char : 128 |
shivanandgowdakr | 0:3d89509fadb7 | 18 | * Font used chars : 96 |
shivanandgowdakr | 0:3d89509fadb7 | 19 | * |
shivanandgowdakr | 0:3d89509fadb7 | 20 | * The font data are defined as |
shivanandgowdakr | 0:3d89509fadb7 | 21 | * |
shivanandgowdakr | 0:3d89509fadb7 | 22 | * struct _FONT_ { |
shivanandgowdakr | 0:3d89509fadb7 | 23 | * uint16_t font_Size_in_Bytes_over_all_included_Size_it_self; |
shivanandgowdakr | 0:3d89509fadb7 | 24 | * uint8_t font_Width_in_Pixel_for_fixed_drawing; |
shivanandgowdakr | 0:3d89509fadb7 | 25 | * uint8_t font_Height_in_Pixel_for_all_characters; |
shivanandgowdakr | 0:3d89509fadb7 | 26 | * unit8_t font_First_Char; |
shivanandgowdakr | 0:3d89509fadb7 | 27 | * uint8_t font_Char_Count; |
shivanandgowdakr | 0:3d89509fadb7 | 28 | * |
shivanandgowdakr | 0:3d89509fadb7 | 29 | * uint8_t font_Char_Widths[font_Last_Char - font_First_Char +1]; |
shivanandgowdakr | 0:3d89509fadb7 | 30 | * // for each character the separate width in pixels, |
shivanandgowdakr | 0:3d89509fadb7 | 31 | * // characters < 128 have an implicit virtual right empty row |
shivanandgowdakr | 0:3d89509fadb7 | 32 | * |
shivanandgowdakr | 0:3d89509fadb7 | 33 | * uint8_t font_data[]; |
shivanandgowdakr | 0:3d89509fadb7 | 34 | * // bit field of all characters |
shivanandgowdakr | 0:3d89509fadb7 | 35 | */ |
shivanandgowdakr | 0:3d89509fadb7 | 36 | |
shivanandgowdakr | 0:3d89509fadb7 | 37 | #include <inttypes.h> |
shivanandgowdakr | 0:3d89509fadb7 | 38 | #include "mbed.h" |
shivanandgowdakr | 0:3d89509fadb7 | 39 | |
shivanandgowdakr | 0:3d89509fadb7 | 40 | #ifndef LED_HALF_1 |
shivanandgowdakr | 0:3d89509fadb7 | 41 | #define Led_HALF_1 |
shivanandgowdakr | 0:3d89509fadb7 | 42 | |
shivanandgowdakr | 0:3d89509fadb7 | 43 | #define LED_HALF_1_WIDTH 10 |
shivanandgowdakr | 0:3d89509fadb7 | 44 | #define LED_HALF_1_HEIGHT 14 |
shivanandgowdakr | 0:3d89509fadb7 | 45 | |
shivanandgowdakr | 0:3d89509fadb7 | 46 | const static uint8_t Led_half_1[2000] = { |
shivanandgowdakr | 0:3d89509fadb7 | 47 | 0x0, 0x0, // size of zero indicates fixed width font, actual length is width * height |
shivanandgowdakr | 0:3d89509fadb7 | 48 | 0x05, // width |
shivanandgowdakr | 0:3d89509fadb7 | 49 | 0x07, // height |
shivanandgowdakr | 0:3d89509fadb7 | 50 | 0x20, // first char |
shivanandgowdakr | 0:3d89509fadb7 | 51 | 0x60, // char count |
shivanandgowdakr | 0:3d89509fadb7 | 52 | |
shivanandgowdakr | 0:3d89509fadb7 | 53 | // char width |
shivanandgowdakr | 0:3d89509fadb7 | 54 | 0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05, |
shivanandgowdakr | 0:3d89509fadb7 | 55 | 0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05, |
shivanandgowdakr | 0:3d89509fadb7 | 56 | 0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05, |
shivanandgowdakr | 0:3d89509fadb7 | 57 | 0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05, |
shivanandgowdakr | 0:3d89509fadb7 | 58 | 0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05, |
shivanandgowdakr | 0:3d89509fadb7 | 59 | 0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05, |
shivanandgowdakr | 0:3d89509fadb7 | 60 | // font data |
shivanandgowdakr | 0:3d89509fadb7 | 61 | 0x00, 0x00, 0x00, 0x00, 0x00,// (space) |
shivanandgowdakr | 0:3d89509fadb7 | 62 | 0x00, 0x00, 0x5F, 0x00, 0x00,// ! |
shivanandgowdakr | 0:3d89509fadb7 | 63 | 0x00, 0x07, 0x00, 0x07, 0x00,// " |
shivanandgowdakr | 0:3d89509fadb7 | 64 | 0x14, 0x7F, 0x14, 0x7F, 0x14,// # |
shivanandgowdakr | 0:3d89509fadb7 | 65 | 0x24, 0x2A, 0x7F, 0x2A, 0x12,// $ |
shivanandgowdakr | 0:3d89509fadb7 | 66 | 0x23, 0x13, 0x08, 0x64, 0x62,// % |
shivanandgowdakr | 0:3d89509fadb7 | 67 | 0x36, 0x49, 0x55, 0x22, 0x50,// & |
shivanandgowdakr | 0:3d89509fadb7 | 68 | 0x00, 0x05, 0x03, 0x00, 0x00,// ' |
shivanandgowdakr | 0:3d89509fadb7 | 69 | 0x00, 0x1C, 0x22, 0x41, 0x00,// ( |
shivanandgowdakr | 0:3d89509fadb7 | 70 | 0x00, 0x41, 0x22, 0x1C, 0x00,// ) |
shivanandgowdakr | 0:3d89509fadb7 | 71 | 0x08, 0x2A, 0x1C, 0x2A, 0x08,// * |
shivanandgowdakr | 0:3d89509fadb7 | 72 | 0x08, 0x08, 0x3E, 0x08, 0x08,// + |
shivanandgowdakr | 0:3d89509fadb7 | 73 | 0x00, 0x50, 0x30, 0x00, 0x00,// , |
shivanandgowdakr | 0:3d89509fadb7 | 74 | 0x08, 0x08, 0x08, 0x08, 0x08,// - |
shivanandgowdakr | 0:3d89509fadb7 | 75 | 0x00, 0x60, 0x60, 0x00, 0x00,// . |
shivanandgowdakr | 0:3d89509fadb7 | 76 | 0x20, 0x10, 0x08, 0x04, 0x02,// / |
shivanandgowdakr | 0:3d89509fadb7 | 77 | 0x3E, 0x51, 0x49, 0x45, 0x3E,// 0 |
shivanandgowdakr | 0:3d89509fadb7 | 78 | 0x00, 0x42, 0x7F, 0x40, 0x00,// 1 |
shivanandgowdakr | 0:3d89509fadb7 | 79 | 0x42, 0x61, 0x51, 0x49, 0x46,// 2 |
shivanandgowdakr | 0:3d89509fadb7 | 80 | 0x21, 0x41, 0x45, 0x4B, 0x31,// 3 |
shivanandgowdakr | 0:3d89509fadb7 | 81 | 0x18, 0x14, 0x12, 0x7F, 0x10,// 4 |
shivanandgowdakr | 0:3d89509fadb7 | 82 | 0x27, 0x45, 0x45, 0x45, 0x39,// 5 |
shivanandgowdakr | 0:3d89509fadb7 | 83 | 0x3C, 0x4A, 0x49, 0x49, 0x30,// 6 |
shivanandgowdakr | 0:3d89509fadb7 | 84 | 0x01, 0x71, 0x09, 0x05, 0x03,// 7 |
shivanandgowdakr | 0:3d89509fadb7 | 85 | 0x36, 0x49, 0x49, 0x49, 0x36,// 8 |
shivanandgowdakr | 0:3d89509fadb7 | 86 | 0x06, 0x49, 0x49, 0x29, 0x1E,// 9 |
shivanandgowdakr | 0:3d89509fadb7 | 87 | 0x00, 0x36, 0x36, 0x00, 0x00,// : |
shivanandgowdakr | 0:3d89509fadb7 | 88 | 0x00, 0x56, 0x36, 0x00, 0x00,// ; |
shivanandgowdakr | 0:3d89509fadb7 | 89 | 0x00, 0x08, 0x14, 0x22, 0x41,// < |
shivanandgowdakr | 0:3d89509fadb7 | 90 | 0x14, 0x14, 0x14, 0x14, 0x14,// = |
shivanandgowdakr | 0:3d89509fadb7 | 91 | 0x41, 0x22, 0x14, 0x08, 0x00,// > |
shivanandgowdakr | 0:3d89509fadb7 | 92 | 0x02, 0x01, 0x51, 0x09, 0x06,// ? |
shivanandgowdakr | 0:3d89509fadb7 | 93 | 0x32, 0x49, 0x79, 0x41, 0x3E,// @ |
shivanandgowdakr | 0:3d89509fadb7 | 94 | 0x7E, 0x11, 0x11, 0x11, 0x7E,// A |
shivanandgowdakr | 0:3d89509fadb7 | 95 | 0x7F, 0x49, 0x49, 0x49, 0x36,// B |
shivanandgowdakr | 0:3d89509fadb7 | 96 | 0x3E, 0x41, 0x41, 0x41, 0x22,// C |
shivanandgowdakr | 0:3d89509fadb7 | 97 | 0x7F, 0x41, 0x41, 0x22, 0x1C,// D |
shivanandgowdakr | 0:3d89509fadb7 | 98 | 0x7F, 0x49, 0x49, 0x49, 0x41,// E |
shivanandgowdakr | 0:3d89509fadb7 | 99 | 0x7F, 0x09, 0x09, 0x01, 0x01,// F |
shivanandgowdakr | 0:3d89509fadb7 | 100 | 0x3E, 0x41, 0x41, 0x51, 0x32,// G |
shivanandgowdakr | 0:3d89509fadb7 | 101 | 0x7F, 0x08, 0x08, 0x08, 0x7F,// H |
shivanandgowdakr | 0:3d89509fadb7 | 102 | 0x00, 0x41, 0x7F, 0x41, 0x00,// I |
shivanandgowdakr | 0:3d89509fadb7 | 103 | 0x20, 0x40, 0x41, 0x3F, 0x01,// J |
shivanandgowdakr | 0:3d89509fadb7 | 104 | 0x7F, 0x08, 0x14, 0x22, 0x41,// K |
shivanandgowdakr | 0:3d89509fadb7 | 105 | 0x7F, 0x40, 0x40, 0x40, 0x40,// L |
shivanandgowdakr | 0:3d89509fadb7 | 106 | 0x7F, 0x02, 0x04, 0x02, 0x7F,// M |
shivanandgowdakr | 0:3d89509fadb7 | 107 | 0x7F, 0x04, 0x08, 0x10, 0x7F,// N |
shivanandgowdakr | 0:3d89509fadb7 | 108 | 0x3E, 0x41, 0x41, 0x41, 0x3E,// O |
shivanandgowdakr | 0:3d89509fadb7 | 109 | 0x7F, 0x09, 0x09, 0x09, 0x06,// P |
shivanandgowdakr | 0:3d89509fadb7 | 110 | 0x3E, 0x41, 0x51, 0x21, 0x5E,// Q |
shivanandgowdakr | 0:3d89509fadb7 | 111 | 0x7F, 0x09, 0x19, 0x29, 0x46,// R |
shivanandgowdakr | 0:3d89509fadb7 | 112 | 0x46, 0x49, 0x49, 0x49, 0x31,// S |
shivanandgowdakr | 0:3d89509fadb7 | 113 | 0x01, 0x01, 0x7F, 0x01, 0x01,// T |
shivanandgowdakr | 0:3d89509fadb7 | 114 | 0x3F, 0x40, 0x40, 0x40, 0x3F,// U |
shivanandgowdakr | 0:3d89509fadb7 | 115 | 0x1F, 0x20, 0x40, 0x20, 0x1F,// V |
shivanandgowdakr | 0:3d89509fadb7 | 116 | 0x7F, 0x20, 0x18, 0x20, 0x7F,// W |
shivanandgowdakr | 0:3d89509fadb7 | 117 | 0x63, 0x14, 0x08, 0x14, 0x63,// X |
shivanandgowdakr | 0:3d89509fadb7 | 118 | 0x03, 0x04, 0x78, 0x04, 0x03,// Y |
shivanandgowdakr | 0:3d89509fadb7 | 119 | 0x61, 0x51, 0x49, 0x45, 0x43,// Z |
shivanandgowdakr | 0:3d89509fadb7 | 120 | 0x00, 0x00, 0x7F, 0x41, 0x41,// [ |
shivanandgowdakr | 0:3d89509fadb7 | 121 | 0x02, 0x04, 0x08, 0x10, 0x20,// "\" |
shivanandgowdakr | 0:3d89509fadb7 | 122 | 0x41, 0x41, 0x7F, 0x00, 0x00,// ] |
shivanandgowdakr | 0:3d89509fadb7 | 123 | 0x04, 0x02, 0x01, 0x02, 0x04,// ^ |
shivanandgowdakr | 0:3d89509fadb7 | 124 | 0x40, 0x40, 0x40, 0x40, 0x40,// _ |
shivanandgowdakr | 0:3d89509fadb7 | 125 | 0x00, 0x01, 0x02, 0x04, 0x00,// ` |
shivanandgowdakr | 0:3d89509fadb7 | 126 | 0x20, 0x54, 0x54, 0x54, 0x78,// a |
shivanandgowdakr | 0:3d89509fadb7 | 127 | 0x7F, 0x48, 0x44, 0x44, 0x38,// b |
shivanandgowdakr | 0:3d89509fadb7 | 128 | 0x38, 0x44, 0x44, 0x44, 0x20,// c |
shivanandgowdakr | 0:3d89509fadb7 | 129 | 0x38, 0x44, 0x44, 0x48, 0x7F,// d |
shivanandgowdakr | 0:3d89509fadb7 | 130 | 0x38, 0x54, 0x54, 0x54, 0x18,// e |
shivanandgowdakr | 0:3d89509fadb7 | 131 | 0x08, 0x7E, 0x09, 0x01, 0x02,// f |
shivanandgowdakr | 0:3d89509fadb7 | 132 | 0x08, 0x14, 0x54, 0x54, 0x3C,// g |
shivanandgowdakr | 0:3d89509fadb7 | 133 | 0x7F, 0x08, 0x04, 0x04, 0x78,// h |
shivanandgowdakr | 0:3d89509fadb7 | 134 | 0x00, 0x44, 0x7D, 0x40, 0x00,// i |
shivanandgowdakr | 0:3d89509fadb7 | 135 | 0x20, 0x40, 0x44, 0x3D, 0x00,// j |
shivanandgowdakr | 0:3d89509fadb7 | 136 | 0x00, 0x7F, 0x10, 0x28, 0x44,// k |
shivanandgowdakr | 0:3d89509fadb7 | 137 | 0x00, 0x41, 0x7F, 0x40, 0x00,// l |
shivanandgowdakr | 0:3d89509fadb7 | 138 | 0x7C, 0x04, 0x18, 0x04, 0x78,// m |
shivanandgowdakr | 0:3d89509fadb7 | 139 | 0x7C, 0x08, 0x04, 0x04, 0x78,// n |
shivanandgowdakr | 0:3d89509fadb7 | 140 | 0x38, 0x44, 0x44, 0x44, 0x38,// o |
shivanandgowdakr | 0:3d89509fadb7 | 141 | 0x7C, 0x14, 0x14, 0x14, 0x08,// p |
shivanandgowdakr | 0:3d89509fadb7 | 142 | 0x08, 0x14, 0x14, 0x18, 0x7C,// q |
shivanandgowdakr | 0:3d89509fadb7 | 143 | 0x7C, 0x08, 0x04, 0x04, 0x08,// r |
shivanandgowdakr | 0:3d89509fadb7 | 144 | 0x48, 0x54, 0x54, 0x54, 0x20,// s |
shivanandgowdakr | 0:3d89509fadb7 | 145 | 0x04, 0x3F, 0x44, 0x40, 0x20,// t |
shivanandgowdakr | 0:3d89509fadb7 | 146 | 0x3C, 0x40, 0x40, 0x20, 0x7C,// u |
shivanandgowdakr | 0:3d89509fadb7 | 147 | 0x1C, 0x20, 0x40, 0x20, 0x1C,// v |
shivanandgowdakr | 0:3d89509fadb7 | 148 | 0x3C, 0x40, 0x30, 0x40, 0x3C,// w |
shivanandgowdakr | 0:3d89509fadb7 | 149 | 0x44, 0x28, 0x10, 0x28, 0x44,// x |
shivanandgowdakr | 0:3d89509fadb7 | 150 | 0x0C, 0x50, 0x50, 0x50, 0x3C,// y |
shivanandgowdakr | 0:3d89509fadb7 | 151 | 0x44, 0x64, 0x54, 0x4C, 0x44,// z |
shivanandgowdakr | 0:3d89509fadb7 | 152 | 0x00, 0x08, 0x36, 0x41, 0x00,// { |
shivanandgowdakr | 0:3d89509fadb7 | 153 | 0x00, 0x00, 0x7F, 0x00, 0x00,// | |
shivanandgowdakr | 0:3d89509fadb7 | 154 | 0x00, 0x41, 0x36, 0x08, 0x00,// } |
shivanandgowdakr | 0:3d89509fadb7 | 155 | 0x08, 0x08, 0x2A, 0x1C, 0x08,// -> |
shivanandgowdakr | 0:3d89509fadb7 | 156 | 0x08, 0x1C, 0x2A, 0x08, 0x08 // <- |
shivanandgowdakr | 0:3d89509fadb7 | 157 | |
shivanandgowdakr | 0:3d89509fadb7 | 158 | }; |
shivanandgowdakr | 0:3d89509fadb7 | 159 | |
shivanandgowdakr | 0:3d89509fadb7 | 160 | #endif |
shivanandgowdakr | 0:3d89509fadb7 | 161 | |
shivanandgowdakr | 0:3d89509fadb7 | 162 |