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 PT6312 VFD controller as used in Cyberhome DVD462 and C2233 00002 * Copyright (c) 2015, v01: WH, Initial version, Test DVD462 and C2233 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 Princeton PT6312 VFD controller 00025 #if (DVD462_TEST == 1) | (C2233_TEST == 1) 00026 00027 //Mask for blending out and restoring Icons 00028 const char MASK_ICON_GRID[][2] = { 00029 {LO(S7_ICON_GR1), HI(S7_ICON_GR1)}, 00030 {LO(S7_ICON_GR2), HI(S7_ICON_GR2)}, 00031 {LO(S7_ICON_GR3), HI(S7_ICON_GR3)}, 00032 {LO(S7_ICON_GR4), HI(S7_ICON_GR4)}, 00033 {LO(S7_ICON_GR5), HI(S7_ICON_GR5)}, 00034 {LO(S7_ICON_GR6), HI(S7_ICON_GR6)} 00035 }; 00036 00037 00038 00039 00040 // ASCII Font definition table for transmission to PT6312 00041 // 00042 //#define FONT_7S_START 0x20 00043 //#define FONT_7S_END 0x7F 00044 //#define FONT_7S_NR_CHARS (FONT_7_END - FONT_7S_START + 1) 00045 00046 const char FONT_7S[] = { 00047 C7_0, //48 0x30 00048 C7_1, 00049 C7_2, 00050 C7_3, 00051 C7_4, 00052 C7_5, 00053 C7_6, 00054 C7_7, 00055 C7_8, 00056 C7_9, 00057 C7_A, //65 0x41, A 00058 C7_B, 00059 C7_C, 00060 C7_D, 00061 C7_E, 00062 C7_F 00063 };// 127 00064 00065 #endif
Generated on Tue Jul 19 2022 01:23:28 by
1.7.2
PT6312 VFD driver (121 segm max), Keyboard scan (24 keys max)