Princeton PT6964 LED controller supports 4 Digits @ 13 Segments, 5 Digits @ 12 Segments, 6 Digits @ 11 Segments or 7 Digits @ 10 Segments. Also supports a scanned keyboard of upto 20 keys. SPI bus interface.

Dependents:   mbed_PT6964

Princeton PT6964 LED controller supports 4 Digits @ 13 Segments, 5 Digits @ 12 Segments, 6 Digits @ 11 Segments or 7 Digits @ 10 Segments. Also supports a scanned keyboard of upto 20 keys. SPI bus interface.

See Component page here.

Committer:
wim
Date:
Thu Jan 14 20:09:52 2016 +0000
Revision:
2:eaf2f5d1af34
Parent:
1:1adf993a3e34
Refactored display and keyboard defines

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wim 0:27f32a087e5a 1 /* mbed LED Font Library, for Princeton PT6964 controller as used in DVD538A
wim 0:27f32a087e5a 2 * Copyright (c) 2015, v01: WH, Initial version
wim 1:1adf993a3e34 3 * 2016, v02: WH, fonttable changed to short
wim 0:27f32a087e5a 4 *
wim 0:27f32a087e5a 5 * Permission is hereby granted, free of charge, to any person obtaining a copy
wim 0:27f32a087e5a 6 * of this software and associated documentation files (the "Software"), to deal
wim 0:27f32a087e5a 7 * in the Software without restriction, including without limitation the rights
wim 0:27f32a087e5a 8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
wim 0:27f32a087e5a 9 * copies of the Software, and to permit persons to whom the Software is
wim 0:27f32a087e5a 10 * furnished to do so, subject to the following conditions:
wim 0:27f32a087e5a 11 *
wim 0:27f32a087e5a 12 * The above copyright notice and this permission notice shall be included in
wim 0:27f32a087e5a 13 * all copies or substantial portions of the Software.
wim 0:27f32a087e5a 14 *
wim 0:27f32a087e5a 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
wim 0:27f32a087e5a 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
wim 0:27f32a087e5a 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
wim 0:27f32a087e5a 18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
wim 0:27f32a087e5a 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
wim 0:27f32a087e5a 20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
wim 0:27f32a087e5a 21 * THE SOFTWARE.
wim 0:27f32a087e5a 22 */
wim 0:27f32a087e5a 23 #include "Font_7Seg.h"
wim 0:27f32a087e5a 24
wim 1:1adf993a3e34 25
wim 1:1adf993a3e34 26 //Mask for blending out and restoring Icons
wim 1:1adf993a3e34 27 const char MASK_ICON_GRID[][2] = {
wim 1:1adf993a3e34 28 {LO(S7_ICON_GR1), HI(S7_ICON_GR1)},
wim 1:1adf993a3e34 29 {LO(S7_ICON_GR2), HI(S7_ICON_GR2)},
wim 1:1adf993a3e34 30 {LO(S7_ICON_GR3), HI(S7_ICON_GR3)},
wim 1:1adf993a3e34 31 {LO(S7_ICON_GR4), HI(S7_ICON_GR4)},
wim 1:1adf993a3e34 32 {LO(S7_ICON_GR5), HI(S7_ICON_GR5)},
wim 1:1adf993a3e34 33 {LO(S7_ICON_GR6), HI(S7_ICON_GR6)},
wim 1:1adf993a3e34 34 {LO(S7_ICON_GR7), HI(S7_ICON_GR7)}
wim 1:1adf993a3e34 35 };
wim 1:1adf993a3e34 36
wim 1:1adf993a3e34 37
wim 0:27f32a087e5a 38 // ASCII Font definition table for transmission to PT6964
wim 0:27f32a087e5a 39 //
wim 0:27f32a087e5a 40 //#define FONT_7S_START 0x20
wim 0:27f32a087e5a 41 //#define FONT_7S_END 0x7F
wim 0:27f32a087e5a 42 //#define FONT_7S_NR_CHARS (FONT_7_END - FONT_7S_START + 1)
wim 0:27f32a087e5a 43
wim 1:1adf993a3e34 44 const short FONT_7S[] = {
wim 1:1adf993a3e34 45 C7_0, //48 0x30
wim 1:1adf993a3e34 46 C7_1,
wim 1:1adf993a3e34 47 C7_2,
wim 1:1adf993a3e34 48 C7_3,
wim 1:1adf993a3e34 49 C7_4,
wim 1:1adf993a3e34 50 C7_5,
wim 1:1adf993a3e34 51 C7_6,
wim 1:1adf993a3e34 52 C7_7,
wim 1:1adf993a3e34 53 C7_8,
wim 1:1adf993a3e34 54 C7_9,
wim 1:1adf993a3e34 55 C7_A, //65 0x41, A
wim 1:1adf993a3e34 56 C7_B,
wim 1:1adf993a3e34 57 C7_C,
wim 1:1adf993a3e34 58 C7_D,
wim 1:1adf993a3e34 59 C7_E,
wim 1:1adf993a3e34 60 C7_F
wim 1:1adf993a3e34 61 };// 127
wim 1:1adf993a3e34 62
wim 0:27f32a087e5a 63