FONT6X12

Dependents:   ILI9341_SPI

Committer:
tmnt
Date:
Sun Nov 20 10:58:27 2016 +0000
Revision:
0:5a1975647d7f
????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tmnt 0:5a1975647d7f 1 #define FONT_6x12_WIDTH 6
tmnt 0:5a1975647d7f 2 #define FONT_6x12_HEIGHT 12
tmnt 0:5a1975647d7f 3 typedef unsigned short ushort;
tmnt 0:5a1975647d7f 4 typedef unsigned char byte;
tmnt 0:5a1975647d7f 5 const byte fc_soh[] = { 0x0, 0x1e, 0x21, 0x21, 0x33, 0x21, 0x21, 0x33, 0x2d, 0x21, 0x1e, 0x0 };
tmnt 0:5a1975647d7f 6 const byte fc_stx[] = { 0x3f, 0x21, 0x1e, 0x1e, 0xc, 0x1e, 0x1e, 0xc, 0x12, 0x1e, 0x21, 0x3f };
tmnt 0:5a1975647d7f 7 const byte fc_space[] ={0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0};
tmnt 0:5a1975647d7f 8 const byte fc_alert[] = { 0x0, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x0, 0x8, 0x8, 0x0 };
tmnt 0:5a1975647d7f 9 const byte fc_dot[] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18, 0x18, 0x0 };
tmnt 0:5a1975647d7f 10 const byte fc_common[] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18, 0x18, 0x18, 0x10, 0x20 };
tmnt 0:5a1975647d7f 11 const byte fc_minus[] = { 0x0,0x0,0x0,0x0,0x0,0x3f,0x0,0x0,0x0,0x0,0x0,0x0};
tmnt 0:5a1975647d7f 12 const byte fc_0[] = { 0x1e, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x1e, 0x0 };
tmnt 0:5a1975647d7f 13 const byte fc_1[] = { 0x4, 0xc, 0x1c, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x0 };
tmnt 0:5a1975647d7f 14 const byte fc_2[] = { 0x1e, 0x21, 0x21, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x20, 0x3f, 0x0 };
tmnt 0:5a1975647d7f 15 const byte fc_3[] = { 0x1e, 0x21, 0x21, 0x1, 0x1, 0xe, 0x1, 0x1, 0x21, 0x21, 0x1e, 0x0 };
tmnt 0:5a1975647d7f 16 const byte fc_4[] = { 0x2, 0x6, 0xa, 0x12, 0x22, 0x3f, 0x2, 0x2, 0x2, 0x2, 0x2, 0x0 };
tmnt 0:5a1975647d7f 17 const byte fc_5[] = { 0x3f, 0x20, 0x20, 0x20, 0x3e, 0x21, 0x1, 0x1, 0x21, 0x21, 0x1e, 0x0 };
tmnt 0:5a1975647d7f 18 const byte fc_6[] = { 0x1e, 0x21, 0x21, 0x20, 0x3e, 0x21, 0x21, 0x21, 0x21, 0x21, 0x1e, 0x0 };
tmnt 0:5a1975647d7f 19 const byte fc_7[] = { 0x3f, 0x1, 0x2, 0x2, 0x4, 0x4, 0x4, 0x8, 0x8, 0x8, 0x8, 0x0 };
tmnt 0:5a1975647d7f 20 const byte fc_8[] = { 0x1e, 0x21, 0x21, 0x21, 0x21, 0x1e, 0x21, 0x21, 0x21, 0x21, 0x1e, 0x0 };
tmnt 0:5a1975647d7f 21 const byte fc_9[] = { 0x1e, 0x21, 0x21, 0x21, 0x21, 0x1f, 0x1, 0x1, 0x1, 0x21, 0x1e, 0x0 };
tmnt 0:5a1975647d7f 22
tmnt 0:5a1975647d7f 23 const byte fc_colon[] = { 0x0, 0x0, 0x0, 0x0, 0xc, 0xc, 0x0, 0x0, 0xc, 0xc, 0x0, 0x0 };
tmnt 0:5a1975647d7f 24 const byte fc_semi[] = { 0x0, 0x0, 0x0, 0x0, 0xc, 0xc, 0x0, 0x0, 0xc, 0xc, 0x4, 0x8 };
tmnt 0:5a1975647d7f 25
tmnt 0:5a1975647d7f 26 const byte fc_less[] = { 0x0, 0x0, 0x2, 0x4, 0x8, 0x10, 0x20, 0x10, 0x8, 0x4, 0x2, 0x0 };
tmnt 0:5a1975647d7f 27 const byte fc_equal[] = { 0x0, 0x0, 0x0, 0x0, 0x3e, 0x0, 0x3e, 0x0, 0x0, 0x0, 0x0, 0x0 };
tmnt 0:5a1975647d7f 28 const byte fc_great[] = { 0x0, 0x0, 0x2, 0x4, 0x8, 0x10, 0x20, 0x10, 0x8, 0x4, 0x2, 0x0 };
tmnt 0:5a1975647d7f 29 const byte fc_quest[] = { 0x0, 0x1e, 0x21, 0x21, 0x2, 0x4, 0x8, 0x8, 0x0, 0x8, 0x8, 0x0 };
tmnt 0:5a1975647d7f 30 const byte fc_at[] = { 0xc, 0x12, 0x21, 0x2d, 0x35, 0x35, 0x35, 0x2a, 0x20, 0x11, 0xe, 0x0 };
tmnt 0:5a1975647d7f 31
tmnt 0:5a1975647d7f 32 const byte fc_AA[] = { 0xc, 0x12, 0x12, 0x21, 0x21, 0x21, 0x3f, 0x21, 0x21, 0x21, 0x21, 0x0 };
tmnt 0:5a1975647d7f 33 const byte fc_BB[] = { 0x3e, 0x11, 0x11, 0x11, 0x11, 0x1e, 0x11, 0x11, 0x11, 0x11, 0x3e, 0x0 };
tmnt 0:5a1975647d7f 34 const byte fc_CC[] = { 0xc, 0x12, 0x21, 0x20, 0x20, 0x20, 0x20, 0x20, 0x21, 0x12, 0xc, 0x0 };
tmnt 0:5a1975647d7f 35 const byte fc_DD[] = { 0x3c, 0x12, 0x11, 0x11, 0x11, 0x11, 0x10, 0x11, 0x11, 0x12, 0x3c, 0x0 };
tmnt 0:5a1975647d7f 36 const byte fc_EE[] = { 0x3f, 0x20, 0x20, 0x20, 0x20, 0x3e, 0x20, 0x20, 0x20, 0x20, 0x3f, 0x0 };
tmnt 0:5a1975647d7f 37 const byte fc_FF[] = { 0x3f, 0x20, 0x20, 0x20, 0x20, 0x3e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x0 };
tmnt 0:5a1975647d7f 38 const byte fc_GG[] = { 0xe, 0x11, 0x21, 0x20, 0x20, 0x2e, 0x21, 0x21, 0x21, 0x13, 0xd, 0x0 };
tmnt 0:5a1975647d7f 39 const byte fc_HH[] = { 0x21, 0x21, 0x21, 0x21, 0x21, 0x3f, 0x21, 0x21, 0x21, 0x21, 0x21, 0x0 };
tmnt 0:5a1975647d7f 40 const byte fc_II[] = { 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x0 };
tmnt 0:5a1975647d7f 41 const byte fc_JJ[] = { 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x12, 0x12, 0xc, 0x0 };
tmnt 0:5a1975647d7f 42 const byte fc_KK[] = { 0x21, 0x22, 0x22, 0x24, 0x28, 0x2c, 0x34, 0x22, 0x22, 0x21, 0x21, 0x0 };
tmnt 0:5a1975647d7f 43 const byte fc_LL[] = { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3f, 0x0 };
tmnt 0:5a1975647d7f 44 const byte fc_MM[] = { 0x22, 0x36, 0x36, 0x36, 0x2a, 0x2a, 0x22, 0x22, 0x22, 0x22, 0x22, 0x0 };
tmnt 0:5a1975647d7f 45 const byte fc_NN[] = { 0x21, 0x31, 0x31, 0x29, 0x29, 0x25, 0x25, 0x23, 0x23, 0x21, 0x21, 0x0 };
tmnt 0:5a1975647d7f 46 const byte fc_OO[] = { 0xc, 0x12, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x12, 0xc, 0x0 };
tmnt 0:5a1975647d7f 47 const byte fc_PP[] = { 0x3c, 0x22, 0x21, 0x21, 0x21, 0x22, 0x3c, 0x20, 0x20, 0x20, 0x20, 0x0 };
tmnt 0:5a1975647d7f 48 const byte fc_QQ[] = { 0xc, 0x12, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x25, 0x13, 0xe, 0x1 };
tmnt 0:5a1975647d7f 49 const byte fc_RR[] = { 0x3c, 0x22, 0x21, 0x21, 0x21, 0x22, 0x3c, 0x24, 0x22, 0x22, 0x21, 0x0 };
tmnt 0:5a1975647d7f 50 const byte fc_SS[] = { 0x1e, 0x21, 0x21, 0x20, 0x10, 0xc, 0x2, 0x1, 0x21, 0x21, 0x1e, 0x0 };
tmnt 0:5a1975647d7f 51 const byte fc_TT[] = { 0x1f, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x0 };
tmnt 0:5a1975647d7f 52 const byte fc_UU[] = { 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x1e, 0x0 };
tmnt 0:5a1975647d7f 53 const byte fc_VV[] = { 0x22, 0x22, 0x22, 0x22, 0x14, 0x14, 0x14, 0x8, 0x8, 0x8, 0x0, 0x0 };
tmnt 0:5a1975647d7f 54 const byte fc_WW[] = { 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0xa, 0xa, 0xa, 0xa, 0xa, 0x0 };
tmnt 0:5a1975647d7f 55 const byte fc_XX[] = { 0x11, 0x11, 0xa, 0xa, 0x4, 0x4, 0x4, 0xa, 0xa, 0x11, 0x11, 0x0 };
tmnt 0:5a1975647d7f 56 const byte fc_YY[] = { 0x11, 0x11, 0x11, 0x11, 0xa, 0xa, 0x4, 0x4, 0x4, 0x4, 0x4, 0x0 };
tmnt 0:5a1975647d7f 57 const byte fc_ZZ[] = { 0x3f, 0x1, 0x2, 0x2, 0x4, 0x4, 0x8, 0x8, 0x10, 0x10, 0x3f, 0x0 };
tmnt 0:5a1975647d7f 58
tmnt 0:5a1975647d7f 59 const byte fc_a[] = { 0x0, 0x0, 0x0, 0x1c, 0x22, 0x2, 0x1c, 0x22, 0x22, 0x26, 0x1b, 0x0 };
tmnt 0:5a1975647d7f 60 const byte fc_b[] = { 0x20, 0x20, 0x20, 0x2c, 0x32, 0x21, 0x21, 0x21, 0x21, 0x32, 0x2c, 0x0 };
tmnt 0:5a1975647d7f 61 const byte fc_c[] = { 0x0, 0x0, 0x0, 0xe, 0x11, 0x20, 0x20, 0x20, 0x20, 0x11, 0xe, 0x0 };
tmnt 0:5a1975647d7f 62 const byte fc_d[] = { 0x1, 0x1, 0x1, 0xd, 0x13, 0x21, 0x21, 0x21, 0x21, 0x13, 0xd, 0x0 };
tmnt 0:5a1975647d7f 63 const byte fc_e[] = { 0x0, 0x0, 0x0, 0x1e, 0x21, 0x21, 0x3f, 0x20, 0x20, 0x21, 0x1e, 0x0 };
tmnt 0:5a1975647d7f 64 const byte fc_f[] = { 0x6, 0x8, 0x8, 0x3e, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x0 };
tmnt 0:5a1975647d7f 65 const byte fc_g[] = { 0x0, 0x0, 0x0, 0x1e, 0x21, 0x21, 0x21, 0x21, 0x1e, 0x1, 0x21, 0x1e };
tmnt 0:5a1975647d7f 66 const byte fc_h[] = { 0x20, 0x20, 0x20, 0x2c, 0x32, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x0 };
tmnt 0:5a1975647d7f 67 const byte fc_i[] = { 0x8, 0x8, 0x0, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x0 };
tmnt 0:5a1975647d7f 68 const byte fc_j[] = { 0x4, 0x4, 0x0, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x18 };
tmnt 0:5a1975647d7f 69 const byte fc_k[] = { 0x20, 0x20, 0x20, 0x20, 0x21, 0x22, 0x24, 0x28, 0x38, 0x24, 0x22, 0x21 };
tmnt 0:5a1975647d7f 70 const byte fc_l[] = { 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x0 };
tmnt 0:5a1975647d7f 71 const byte fc_m[] = { 0x0, 0x0, 0x0, 0x34, 0x2a, 0x2a, 0x2a, 0x2a, 0x2a, 0x2a, 0x2a, 0x0 };
tmnt 0:5a1975647d7f 72 const byte fc_n[] = { 0x0, 0x0, 0x0, 0x3c, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22 };
tmnt 0:5a1975647d7f 73 const byte fc_o[] = { 0x0, 0x0, 0x0, 0xc, 0x12, 0x21, 0x21, 0x21, 0x21, 0x12, 0xc, 0x0 };
tmnt 0:5a1975647d7f 74 const byte fc_p[] = { 0x0, 0x0, 0x0, 0x2c, 0x32, 0x21, 0x21, 0x21, 0x21, 0x32, 0x2c, 0x20 };
tmnt 0:5a1975647d7f 75 const byte fc_q[] = { 0x0, 0x0, 0x0, 0xd, 0x13, 0x21, 0x21, 0x21, 0x21, 0x13, 0xd, 0x1 };
tmnt 0:5a1975647d7f 76 const byte fc_r[] = { 0x0, 0x0, 0x0, 0x16, 0x18, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10 };
tmnt 0:5a1975647d7f 77 const byte fc_s[] = { 0x0, 0x0, 0x0, 0x1e, 0x21, 0x20, 0x18, 0x6, 0x1, 0x21, 0x1e, 0x0 };
tmnt 0:5a1975647d7f 78 const byte fc_t[] = { 0x8, 0x8, 0x8, 0x1e, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x6, 0x0 };
tmnt 0:5a1975647d7f 79 const byte fc_u[] = { 0x0, 0x0, 0x0, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x1f };
tmnt 0:5a1975647d7f 80 const byte fc_v[] = { 0x0, 0x0, 0x0, 0x22, 0x22, 0x22, 0x22, 0x14, 0x14, 0x8, 0x8, 0x0 };
tmnt 0:5a1975647d7f 81 const byte fc_w[] = { 0x0, 0x0, 0x0, 0x2a, 0x2a, 0x2a, 0x2a, 0x2a, 0x14, 0x14, 0x14, 0x0 };
tmnt 0:5a1975647d7f 82 const byte fc_x[] = { 0x0, 0x0, 0x0, 0x21, 0x12, 0x12, 0xc, 0xc, 0x12, 0x12, 0x21, 0x0 };
tmnt 0:5a1975647d7f 83 const byte fc_y[] = { 0x0, 0x0, 0x0, 0x21, 0x22, 0x12, 0x14, 0x14, 0x8, 0x8, 0x8, 0x30 };
tmnt 0:5a1975647d7f 84 const byte fc_z[] = { 0x0, 0x0, 0x0, 0x3f, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x3f, 0x0 };
tmnt 0:5a1975647d7f 85
tmnt 0:5a1975647d7f 86 /* 自作ASCII表の一部 */
tmnt 0:5a1975647d7f 87 const byte* fc_tab[] = {
tmnt 0:5a1975647d7f 88 0, fc_soh, fc_stx, 0, 0, 0, 0, 0, 0, 0, // 0~9
tmnt 0:5a1975647d7f 89 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 10~19
tmnt 0:5a1975647d7f 90 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20~29
tmnt 0:5a1975647d7f 91 0, 0, fc_space, fc_alert, 0, 0, 0, 0, 0, 0, // 30~39
tmnt 0:5a1975647d7f 92 0, 0, 0, 0, fc_common, fc_minus, fc_dot, 0, fc_0, fc_1, // 40~49
tmnt 0:5a1975647d7f 93 fc_2, fc_3, fc_4, fc_5, fc_6, fc_7, fc_8, fc_9, fc_colon, fc_semi, // 50~59
tmnt 0:5a1975647d7f 94 fc_great, fc_equal, fc_less, fc_quest, fc_at, fc_AA, fc_BB, fc_CC, fc_DD, fc_EE, // 60~69
tmnt 0:5a1975647d7f 95 fc_FF, fc_GG, fc_HH, fc_II, fc_JJ, fc_KK, fc_LL, fc_MM, fc_NN, fc_OO, // 70~79
tmnt 0:5a1975647d7f 96 fc_PP, fc_QQ, fc_RR, fc_SS, fc_TT, fc_UU, fc_VV, fc_WW, fc_XX, fc_YY, // 80~89
tmnt 0:5a1975647d7f 97 fc_ZZ, 0, 0, 0, 0, 0, 0, // 90~96
tmnt 0:5a1975647d7f 98
tmnt 0:5a1975647d7f 99 fc_a, fc_b, fc_c, fc_d, fc_e, fc_f, fc_g,
tmnt 0:5a1975647d7f 100 fc_h, fc_i, fc_j, fc_k, fc_l, fc_m, fc_n,
tmnt 0:5a1975647d7f 101 fc_o, fc_p, fc_q, fc_r, fc_s, fc_t,
tmnt 0:5a1975647d7f 102 fc_u, fc_v, fc_w, fc_x, fc_y, fc_z
tmnt 0:5a1975647d7f 103 };