Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Font_7Seg.cpp
00001 /* mbed Font Library, for PT6318 VFD controller 00002 * Copyright (c) 2016, v01: WH, Initial version, Test in KUH8300 00003 * 00004 * Permission is hereby granted, free of charge, to any person obtaining a copy 00005 * of this software and associated documentation files (the "Software"), to deal 00006 * in the Software without restriction, including without limitation the rights 00007 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00008 * copies of the Software, and to permit persons to whom the Software is 00009 * furnished to do so, subject to the following conditions: 00010 * 00011 * The above copyright notice and this permission notice shall be included in 00012 * all copies or substantial portions of the Software. 00013 * 00014 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00015 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00016 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00017 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00018 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00019 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00020 * THE SOFTWARE. 00021 */ 00022 #include "Font_7Seg.h" 00023 00024 // Select one of the testboards for PT6318 VFD controller 00025 #if (KUH8300_TEST == 1) 00026 00027 //Mask for blending out and restoring Icons 00028 const char MASK_ICON_GRID[][3] = { 00029 {LO(S7_ICON_GR1), MD(S7_ICON_GR1), HI(S7_ICON_GR1)}, 00030 {LO(S7_ICON_GR2), MD(S7_ICON_GR2), HI(S7_ICON_GR2)}, 00031 {LO(S7_ICON_GR3), MD(S7_ICON_GR3), HI(S7_ICON_GR3)}, 00032 {LO(S7_ICON_GR4), MD(S7_ICON_GR4), HI(S7_ICON_GR4)}, 00033 {LO(S7_ICON_GR5), MD(S7_ICON_GR5), HI(S7_ICON_GR5)}, 00034 {LO(S7_ICON_GR6), MD(S7_ICON_GR6), HI(S7_ICON_GR6)} 00035 }; 00036 00037 // ASCII Font definition table for transmission to PT6318 00038 // 00039 //#define FONT_7S_START 0x20 00040 //#define FONT_7S_END 0x7F 00041 //#define FONT_7S_NR_CHARS (FONT_7_END - FONT_7S_START + 1) 00042 00043 #if (SHOW_ASCII == 1) 00044 //display all ASCII characters 00045 const char FONT_7S[] = { 00046 C7_SPC, //32 0x20, Space 00047 C7_EXC, 00048 C7_QTE, 00049 C7_HSH, 00050 C7_DLR, 00051 C7_PCT, 00052 C7_AMP, 00053 C7_ACC, 00054 C7_LBR, 00055 C7_RBR, 00056 C7_MLT, 00057 C7_PLS, 00058 C7_CMA, 00059 C7_MIN, 00060 C7_DPT, 00061 C7_RS, 00062 C7_0, //48 0x30 00063 C7_1, 00064 C7_2, 00065 C7_3, 00066 C7_4, 00067 C7_5, 00068 C7_6, 00069 C7_7, 00070 C7_8, 00071 C7_9, 00072 C7_COL, //58 0x3A 00073 C7_SCL, 00074 C7_LT, 00075 C7_EQ, 00076 C7_GT, 00077 C7_QM, 00078 C7_AT, //64 0x40 00079 C7_A, //65 0x41, A 00080 C7_B, 00081 C7_C, 00082 C7_D, 00083 C7_E, 00084 C7_F, 00085 C7_G, 00086 C7_H, 00087 C7_I, 00088 C7_J, 00089 C7_K, 00090 C7_L, 00091 C7_M, 00092 C7_N, 00093 C7_O, 00094 C7_P, 00095 C7_Q, 00096 C7_R, 00097 C7_S, 00098 C7_T, 00099 C7_U, 00100 C7_V, 00101 C7_W, 00102 C7_X, 00103 C7_Y, 00104 C7_Z, //90 0x5A, Z 00105 C7_SBL, //91 0x5B 00106 C7_LS, 00107 C7_SBR, 00108 C7_PWR, 00109 C7_UDS, 00110 C7_ACC, 00111 C7_A, //97 0x61, A replacing a 00112 C7_B, 00113 C7_C, 00114 C7_D, 00115 C7_E, 00116 C7_F, 00117 C7_G, 00118 C7_H, 00119 C7_I, 00120 C7_J, 00121 C7_K, 00122 C7_L, 00123 C7_M, 00124 C7_N, 00125 C7_O, 00126 C7_P, 00127 C7_Q, 00128 C7_R, 00129 C7_S, 00130 C7_T, 00131 C7_U, 00132 C7_V, 00133 C7_W, 00134 C7_X, 00135 C7_Y, 00136 C7_Z, // 122 0x7A, Z replacing z 00137 C7_CBL, // 123 0x7B 00138 C7_OR, 00139 C7_CBR, 00140 C7_TLD, 00141 C7_DEL // 127 00142 }; 00143 00144 #else 00145 //display only digits and hex characters 00146 const char FONT_7S[] = { 00147 C7_0, //48 0x30 00148 C7_1, 00149 C7_2, 00150 C7_3, 00151 C7_4, 00152 C7_5, 00153 C7_6, 00154 C7_7, 00155 C7_8, 00156 C7_9, 00157 C7_A, //65 0x41, A 00158 C7_B, 00159 C7_C, 00160 C7_D, 00161 C7_E, 00162 C7_F 00163 };// 127 00164 #endif 00165 00166 #endif
Generated on Tue Jul 12 2022 18:26:03 by
1.7.2
PT6318 VFD driver (192 segm max), Keyboard scan (48 max).