Alphanumeric LED display, 8 digits, 5x7 pattern. Supports 8x1, 8x2, 16x1 and 16x2 display configuration.

Dependents:   mbed_HCMS2975

Alphanumeric LED display, 8 digits, 5x7 LED pattern. The device has SPI interface. The library supports multiple devices connected in a daisy chain. This provides a 8x1, 8x2, 16x1 and 16x2 display configuration.The library methods are similar to those used for the LCDText library.

/media/uploads/wim/hcms2975.jpg

These displays are from mid 80s to mid 90s and they look cool, but they are rather expensive ($100 a piece..). The lib was developed and tested with displays salvaged from some equipment. You see them mostly in HP printers, medical equipment etc.

Some info can be found here and here.

Datasheet is here

Committer:
wim
Date:
Mon Jan 05 20:37:06 2015 +0000
Revision:
1:f46d90374eb2
Parent:
0:a332431006fb
Fixed setBrightness() at init()

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wim 0:a332431006fb 1
wim 0:a332431006fb 2 /* mbed Avago/HP HCMS2975 LED matrix display Library
wim 0:a332431006fb 3 * Copyright (c) 2014, v01: Initial release, internet source: Pascal Stang, 10/19/2001
wim 0:a332431006fb 4 * Info available at http://playground.arduino.cc/Main/LedDisplay and http://www.pjrc.com/teensy/td_libs_LedDisplay.html
wim 0:a332431006fb 5 *
wim 0:a332431006fb 6 * Permission is hereby granted, free of charge, to any person obtaining a copy
wim 0:a332431006fb 7 * of this software and associated documentation files (the "Software"), to deal
wim 0:a332431006fb 8 * in the Software without restriction, including without limitation the rights
wim 0:a332431006fb 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
wim 0:a332431006fb 10 * copies of the Software, and to permit persons to whom the Software is
wim 0:a332431006fb 11 * furnished to do so, subject to the following conditions:
wim 0:a332431006fb 12 *
wim 0:a332431006fb 13 * The above copyright notice and this permission notice shall be included in
wim 0:a332431006fb 14 * all copies or substantial portions of the Software.
wim 0:a332431006fb 15 *
wim 0:a332431006fb 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
wim 0:a332431006fb 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
wim 0:a332431006fb 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
wim 0:a332431006fb 19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
wim 0:a332431006fb 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
wim 0:a332431006fb 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
wim 0:a332431006fb 22 * THE SOFTWARE.
wim 0:a332431006fb 23 */
wim 0:a332431006fb 24 #ifndef _HCMS2975_FONT_5x7_H
wim 0:a332431006fb 25 #define _HCMS2975_FONT_5x7_H
wim 0:a332431006fb 26
wim 0:a332431006fb 27 // defines ascii characters 0x20-0x7F (32-127)
wim 0:a332431006fb 28 const char font_5x7[][5] = {
wim 0:a332431006fb 29 {0x00, 0x00, 0x00, 0x00, 0x00},// (space) $20
wim 0:a332431006fb 30 {0x00, 0x00, 0x5F, 0x00, 0x00},// !
wim 0:a332431006fb 31 {0x00, 0x07, 0x00, 0x07, 0x00},// "
wim 0:a332431006fb 32 {0x14, 0x7F, 0x14, 0x7F, 0x14},// #
wim 0:a332431006fb 33 {0x24, 0x2A, 0x7F, 0x2A, 0x12},// $
wim 0:a332431006fb 34 {0x23, 0x13, 0x08, 0x64, 0x62},// %
wim 0:a332431006fb 35 {0x36, 0x49, 0x55, 0x22, 0x50},// &
wim 0:a332431006fb 36 {0x00, 0x05, 0x03, 0x00, 0x00},// '
wim 0:a332431006fb 37 {0x00, 0x1C, 0x22, 0x41, 0x00},// (
wim 0:a332431006fb 38 {0x00, 0x41, 0x22, 0x1C, 0x00},// )
wim 0:a332431006fb 39 {0x08, 0x2A, 0x1C, 0x2A, 0x08},// *
wim 0:a332431006fb 40 {0x08, 0x08, 0x3E, 0x08, 0x08},// +
wim 0:a332431006fb 41 {0x00, 0x50, 0x30, 0x00, 0x00},// ,
wim 0:a332431006fb 42 {0x08, 0x08, 0x08, 0x08, 0x08},// -
wim 0:a332431006fb 43 {0x00, 0x60, 0x60, 0x00, 0x00},// .
wim 0:a332431006fb 44 {0x20, 0x10, 0x08, 0x04, 0x02},// /
wim 0:a332431006fb 45 {0x3E, 0x51, 0x49, 0x45, 0x3E},// 0
wim 0:a332431006fb 46 {0x00, 0x42, 0x7F, 0x40, 0x00},// 1
wim 0:a332431006fb 47 {0x42, 0x61, 0x51, 0x49, 0x46},// 2
wim 0:a332431006fb 48 {0x21, 0x41, 0x45, 0x4B, 0x31},// 3
wim 0:a332431006fb 49 {0x18, 0x14, 0x12, 0x7F, 0x10},// 4
wim 0:a332431006fb 50 {0x27, 0x45, 0x45, 0x45, 0x39},// 5
wim 0:a332431006fb 51 {0x3C, 0x4A, 0x49, 0x49, 0x30},// 6
wim 0:a332431006fb 52 {0x01, 0x71, 0x09, 0x05, 0x03},// 7
wim 0:a332431006fb 53 {0x36, 0x49, 0x49, 0x49, 0x36},// 8
wim 0:a332431006fb 54 {0x06, 0x49, 0x49, 0x29, 0x1E},// 9
wim 0:a332431006fb 55 {0x00, 0x36, 0x36, 0x00, 0x00},// :
wim 0:a332431006fb 56 {0x00, 0x56, 0x36, 0x00, 0x00},// ;
wim 0:a332431006fb 57 {0x00, 0x08, 0x14, 0x22, 0x41},// <
wim 0:a332431006fb 58 {0x14, 0x14, 0x14, 0x14, 0x14},// =
wim 0:a332431006fb 59 {0x41, 0x22, 0x14, 0x08, 0x00},// >
wim 0:a332431006fb 60 {0x02, 0x01, 0x51, 0x09, 0x06},// ?
wim 0:a332431006fb 61 {0x32, 0x49, 0x79, 0x41, 0x3E},// @
wim 0:a332431006fb 62 {0x7E, 0x11, 0x11, 0x11, 0x7E},// A
wim 0:a332431006fb 63 {0x7F, 0x49, 0x49, 0x49, 0x36},// B
wim 0:a332431006fb 64 {0x3E, 0x41, 0x41, 0x41, 0x22},// C
wim 0:a332431006fb 65 {0x7F, 0x41, 0x41, 0x22, 0x1C},// D
wim 0:a332431006fb 66 {0x7F, 0x49, 0x49, 0x49, 0x41},// E
wim 0:a332431006fb 67 {0x7F, 0x09, 0x09, 0x01, 0x01},// F
wim 0:a332431006fb 68 {0x3E, 0x41, 0x41, 0x51, 0x32},// G
wim 0:a332431006fb 69 {0x7F, 0x08, 0x08, 0x08, 0x7F},// H
wim 0:a332431006fb 70 {0x00, 0x41, 0x7F, 0x41, 0x00},// I
wim 0:a332431006fb 71 {0x20, 0x40, 0x41, 0x3F, 0x01},// J
wim 0:a332431006fb 72 {0x7F, 0x08, 0x14, 0x22, 0x41},// K
wim 0:a332431006fb 73 {0x7F, 0x40, 0x40, 0x40, 0x40},// L
wim 0:a332431006fb 74 {0x7F, 0x02, 0x04, 0x02, 0x7F},// M
wim 0:a332431006fb 75 {0x7F, 0x04, 0x08, 0x10, 0x7F},// N
wim 0:a332431006fb 76 {0x3E, 0x41, 0x41, 0x41, 0x3E},// O
wim 0:a332431006fb 77 {0x7F, 0x09, 0x09, 0x09, 0x06},// P
wim 0:a332431006fb 78 {0x3E, 0x41, 0x51, 0x21, 0x5E},// Q
wim 0:a332431006fb 79 {0x7F, 0x09, 0x19, 0x29, 0x46},// R
wim 0:a332431006fb 80 {0x46, 0x49, 0x49, 0x49, 0x31},// S
wim 0:a332431006fb 81 {0x01, 0x01, 0x7F, 0x01, 0x01},// T
wim 0:a332431006fb 82 {0x3F, 0x40, 0x40, 0x40, 0x3F},// U
wim 0:a332431006fb 83 {0x1F, 0x20, 0x40, 0x20, 0x1F},// V
wim 0:a332431006fb 84 {0x7F, 0x20, 0x18, 0x20, 0x7F},// W
wim 0:a332431006fb 85 {0x63, 0x14, 0x08, 0x14, 0x63},// X
wim 0:a332431006fb 86 {0x03, 0x04, 0x78, 0x04, 0x03},// Y
wim 0:a332431006fb 87 {0x61, 0x51, 0x49, 0x45, 0x43},// Z
wim 0:a332431006fb 88 {0x00, 0x00, 0x7F, 0x41, 0x41},// [
wim 0:a332431006fb 89 {0x02, 0x04, 0x08, 0x10, 0x20},// "\"
wim 0:a332431006fb 90 {0x41, 0x41, 0x7F, 0x00, 0x00},// ]
wim 0:a332431006fb 91 {0x04, 0x02, 0x01, 0x02, 0x04},// ^
wim 0:a332431006fb 92 {0x40, 0x40, 0x40, 0x40, 0x40},// _
wim 0:a332431006fb 93 {0x00, 0x01, 0x02, 0x04, 0x00},// `
wim 0:a332431006fb 94 {0x20, 0x54, 0x54, 0x54, 0x78},// a
wim 0:a332431006fb 95 {0x7F, 0x48, 0x44, 0x44, 0x38},// b
wim 0:a332431006fb 96 {0x38, 0x44, 0x44, 0x44, 0x20},// c
wim 0:a332431006fb 97 {0x38, 0x44, 0x44, 0x48, 0x7F},// d
wim 0:a332431006fb 98 {0x38, 0x54, 0x54, 0x54, 0x18},// e
wim 0:a332431006fb 99 {0x08, 0x7E, 0x09, 0x01, 0x02},// f
wim 0:a332431006fb 100 {0x08, 0x14, 0x54, 0x54, 0x3C},// g
wim 0:a332431006fb 101 {0x7F, 0x08, 0x04, 0x04, 0x78},// h
wim 0:a332431006fb 102 {0x00, 0x44, 0x7D, 0x40, 0x00},// i
wim 0:a332431006fb 103 {0x20, 0x40, 0x44, 0x3D, 0x00},// j
wim 0:a332431006fb 104 {0x00, 0x7F, 0x10, 0x28, 0x44},// k
wim 0:a332431006fb 105 {0x00, 0x41, 0x7F, 0x40, 0x00},// l
wim 0:a332431006fb 106 {0x7C, 0x04, 0x18, 0x04, 0x78},// m
wim 0:a332431006fb 107 {0x7C, 0x08, 0x04, 0x04, 0x78},// n
wim 0:a332431006fb 108 {0x38, 0x44, 0x44, 0x44, 0x38},// o
wim 0:a332431006fb 109 {0x7C, 0x14, 0x14, 0x14, 0x08},// p
wim 0:a332431006fb 110 {0x08, 0x14, 0x14, 0x18, 0x7C},// q
wim 0:a332431006fb 111 {0x7C, 0x08, 0x04, 0x04, 0x08},// r
wim 0:a332431006fb 112 {0x48, 0x54, 0x54, 0x54, 0x20},// s
wim 0:a332431006fb 113 {0x04, 0x3F, 0x44, 0x40, 0x20},// t
wim 0:a332431006fb 114 {0x3C, 0x40, 0x40, 0x20, 0x7C},// u
wim 0:a332431006fb 115 {0x1C, 0x20, 0x40, 0x20, 0x1C},// v
wim 0:a332431006fb 116 {0x3C, 0x40, 0x30, 0x40, 0x3C},// w
wim 0:a332431006fb 117 {0x44, 0x28, 0x10, 0x28, 0x44},// x
wim 0:a332431006fb 118 {0x0C, 0x50, 0x50, 0x50, 0x3C},// y
wim 0:a332431006fb 119 {0x44, 0x64, 0x54, 0x4C, 0x44},// z
wim 0:a332431006fb 120 {0x00, 0x08, 0x36, 0x41, 0x00},// {
wim 0:a332431006fb 121 {0x00, 0x00, 0x7F, 0x00, 0x00},// |
wim 0:a332431006fb 122 {0x00, 0x41, 0x36, 0x08, 0x00},// }
wim 0:a332431006fb 123 {0x08, 0x08, 0x2A, 0x1C, 0x08},// ->
wim 0:a332431006fb 124 {0x08, 0x1C, 0x2A, 0x08, 0x08} // <- $7F
wim 0:a332431006fb 125 };
wim 0:a332431006fb 126
wim 0:a332431006fb 127 #endif