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 LED Font Library, for Princeton PT6964 controller as used in DVD538A 00002 * Copyright (c) 2015, v01: WH, Initial version 00003 * 2016, v02: WH, fonttable changed to short 00004 * 00005 * Permission is hereby granted, free of charge, to any person obtaining a copy 00006 * of this software and associated documentation files (the "Software"), to deal 00007 * in the Software without restriction, including without limitation the rights 00008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00009 * copies of the Software, and to permit persons to whom the Software is 00010 * furnished to do so, subject to the following conditions: 00011 * 00012 * The above copyright notice and this permission notice shall be included in 00013 * all copies or substantial portions of the Software. 00014 * 00015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00021 * THE SOFTWARE. 00022 */ 00023 #include "Font_7Seg.h" 00024 00025 00026 //Mask for blending out and restoring Icons 00027 const char MASK_ICON_GRID[][2] = { 00028 {LO(S7_ICON_GR1), HI(S7_ICON_GR1)}, 00029 {LO(S7_ICON_GR2), HI(S7_ICON_GR2)}, 00030 {LO(S7_ICON_GR3), HI(S7_ICON_GR3)}, 00031 {LO(S7_ICON_GR4), HI(S7_ICON_GR4)}, 00032 {LO(S7_ICON_GR5), HI(S7_ICON_GR5)}, 00033 {LO(S7_ICON_GR6), HI(S7_ICON_GR6)}, 00034 {LO(S7_ICON_GR7), HI(S7_ICON_GR7)} 00035 }; 00036 00037 00038 // ASCII Font definition table for transmission to PT6964 00039 // 00040 //#define FONT_7S_START 0x20 00041 //#define FONT_7S_END 0x7F 00042 //#define FONT_7S_NR_CHARS (FONT_7_END - FONT_7S_START + 1) 00043 00044 const short FONT_7S[] = { 00045 C7_0, //48 0x30 00046 C7_1, 00047 C7_2, 00048 C7_3, 00049 C7_4, 00050 C7_5, 00051 C7_6, 00052 C7_7, 00053 C7_8, 00054 C7_9, 00055 C7_A, //65 0x41, A 00056 C7_B, 00057 C7_C, 00058 C7_D, 00059 C7_E, 00060 C7_F 00061 };// 127 00062 00063
Generated on Tue Jul 12 2022 17:56:28 by
1.7.2
PT6964 LED controller (70 LEDs max), Keyboard scan (20 keys max)