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:
Sat Nov 21 16:43:15 2015 +0000
Revision:
0:27f32a087e5a
Child:
1:1adf993a3e34
First version

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 0:27f32a087e5a 3 *
wim 0:27f32a087e5a 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
wim 0:27f32a087e5a 5 * of this software and associated documentation files (the "Software"), to deal
wim 0:27f32a087e5a 6 * in the Software without restriction, including without limitation the rights
wim 0:27f32a087e5a 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
wim 0:27f32a087e5a 8 * copies of the Software, and to permit persons to whom the Software is
wim 0:27f32a087e5a 9 * furnished to do so, subject to the following conditions:
wim 0:27f32a087e5a 10 *
wim 0:27f32a087e5a 11 * The above copyright notice and this permission notice shall be included in
wim 0:27f32a087e5a 12 * all copies or substantial portions of the Software.
wim 0:27f32a087e5a 13 *
wim 0:27f32a087e5a 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
wim 0:27f32a087e5a 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
wim 0:27f32a087e5a 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
wim 0:27f32a087e5a 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
wim 0:27f32a087e5a 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
wim 0:27f32a087e5a 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
wim 0:27f32a087e5a 20 * THE SOFTWARE.
wim 0:27f32a087e5a 21 */
wim 0:27f32a087e5a 22 #include "Font_7Seg.h"
wim 0:27f32a087e5a 23
wim 0:27f32a087e5a 24 // ASCII Font definition table for transmission to PT6964
wim 0:27f32a087e5a 25 //
wim 0:27f32a087e5a 26 //#define FONT_7S_START 0x20
wim 0:27f32a087e5a 27 //#define FONT_7S_END 0x7F
wim 0:27f32a087e5a 28 //#define FONT_7S_NR_CHARS (FONT_7_END - FONT_7S_START + 1)
wim 0:27f32a087e5a 29
wim 0:27f32a087e5a 30 const char FONT_7S[][2] = {
wim 0:27f32a087e5a 31 {LO(C_0), HI(C_0)}, //48 0x30
wim 0:27f32a087e5a 32 {LO(C_1), HI(C_1)},
wim 0:27f32a087e5a 33 {LO(C_2), HI(C_2)},
wim 0:27f32a087e5a 34 {LO(C_3), HI(C_3)},
wim 0:27f32a087e5a 35 {LO(C_4), HI(C_4)},
wim 0:27f32a087e5a 36 {LO(C_5), HI(C_5)},
wim 0:27f32a087e5a 37 {LO(C_6), HI(C_6)},
wim 0:27f32a087e5a 38 {LO(C_7), HI(C_7)},
wim 0:27f32a087e5a 39 {LO(C_8), HI(C_8)},
wim 0:27f32a087e5a 40 {LO(C_9), HI(C_9)},
wim 0:27f32a087e5a 41 {LO(C_A), HI(C_A)}, //65 0x41, A
wim 0:27f32a087e5a 42 {LO(C_B), HI(C_B)},
wim 0:27f32a087e5a 43 {LO(C_C), HI(C_C)},
wim 0:27f32a087e5a 44 {LO(C_D), HI(C_D)},
wim 0:27f32a087e5a 45 {LO(C_E), HI(C_E)},
wim 0:27f32a087e5a 46 {LO(C_F), HI(C_F)}
wim 0:27f32a087e5a 47 };// 127
wim 0:27f32a087e5a 48
wim 0:27f32a087e5a 49