Library for Siemens SDA5708 8 digit LED matrix display. The control interface is SPI.

Dependents:   mbed_SDA5708

Committer:
wim
Date:
Mon Sep 29 19:39:18 2014 +0000
Revision:
0:5265413226e5
Library for Siemens SDA5708 LED matrix display. The display has 8 digits, each comprising of a 5x7 LED matrix.The control interface is SPI.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wim 0:5265413226e5 1
wim 0:5265413226e5 2 /* mbed SDA5708 LED matrix display Library
wim 0:5265413226e5 3 * Copyright (c) 2014, v01: Initial release (internet source)
wim 0:5265413226e5 4 *
wim 0:5265413226e5 5 * Permission is hereby granted, free of charge, to any person obtaining a copy
wim 0:5265413226e5 6 * of this software and associated documentation files (the "Software"), to deal
wim 0:5265413226e5 7 * in the Software without restriction, including without limitation the rights
wim 0:5265413226e5 8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
wim 0:5265413226e5 9 * copies of the Software, and to permit persons to whom the Software is
wim 0:5265413226e5 10 * furnished to do so, subject to the following conditions:
wim 0:5265413226e5 11 *
wim 0:5265413226e5 12 * The above copyright notice and this permission notice shall be included in
wim 0:5265413226e5 13 * all copies or substantial portions of the Software.
wim 0:5265413226e5 14 *
wim 0:5265413226e5 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
wim 0:5265413226e5 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
wim 0:5265413226e5 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
wim 0:5265413226e5 18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
wim 0:5265413226e5 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
wim 0:5265413226e5 20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
wim 0:5265413226e5 21 * THE SOFTWARE.
wim 0:5265413226e5 22 */
wim 0:5265413226e5 23 #ifndef _SDA5708_FONT_5x7_H
wim 0:5265413226e5 24 #define _SDA5708_FONT_5x7_H
wim 0:5265413226e5 25
wim 0:5265413226e5 26 const char font_5x7[][7] = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, //Space $20
wim 0:5265413226e5 27 {0x04, 0x04, 0x04, 0x04, 0x04, 0x00, 0x04}, // ! $21
wim 0:5265413226e5 28 {0x0A, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00}, // " $22
wim 0:5265413226e5 29 {0x0A, 0x0A, 0x3F, 0x0A, 0x3F, 0x0A, 0x0A}, // # $23
wim 0:5265413226e5 30 {0x04, 0x0F, 0x14, 0x0E, 0x05, 0x1E, 0x04}, // $ $24
wim 0:5265413226e5 31 {0x18, 0x19, 0x02, 0x04, 0x08, 0x13, 0x03}, // % $25
wim 0:5265413226e5 32 {0x00, 0x08, 0x14, 0x08, 0x16, 0x12, 0x0D}, // & $26
wim 0:5265413226e5 33 {0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00}, // ' $27
wim 0:5265413226e5 34 {0x02, 0x04, 0x08, 0x08, 0x08, 0x04, 0x02}, // ( $28
wim 0:5265413226e5 35 {0x08, 0x04, 0x02, 0x02, 0x02, 0x04, 0x08}, // ) $29
wim 0:5265413226e5 36 {0x04, 0x15, 0x0E, 0x04, 0x0E, 0x15, 0x04}, // * $2A
wim 0:5265413226e5 37 {0x00, 0x04, 0x04, 0x1F, 0x04, 0x04, 0x00}, // + $2B
wim 0:5265413226e5 38 {0x00, 0x00, 0x00, 0x00, 0x0C, 0x04, 0x08}, // , $2C
wim 0:5265413226e5 39 {0x00, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00}, // - $2D
wim 0:5265413226e5 40 {0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x0C}, // . $2E
wim 0:5265413226e5 41 {0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x00}, // / $2F
wim 0:5265413226e5 42 {0x04, 0x0A, 0x11, 0x11, 0x11, 0x0A, 0x04}, // 0 $30
wim 0:5265413226e5 43 {0x04, 0x0C, 0x04, 0x04, 0x04, 0x04, 0x0E}, // 1 $31
wim 0:5265413226e5 44 {0x0E, 0x11, 0x02, 0x04, 0x08, 0x10, 0x1F}, // 2 $32
wim 0:5265413226e5 45 {0x1F, 0x01, 0x02, 0x06, 0x01, 0x11, 0x0E}, // 3 $33
wim 0:5265413226e5 46 {0x02, 0x06, 0x0A, 0x12, 0x1F, 0x02, 0x02}, // 4 $34
wim 0:5265413226e5 47 {0x1F, 0x10, 0x10, 0x1E, 0x01, 0x11, 0x0E}, // 5 $35
wim 0:5265413226e5 48 {0x0E, 0x10, 0x10, 0x1E, 0x11, 0x11, 0x0E}, // 6 $36
wim 0:5265413226e5 49 {0x1F, 0x01, 0x02, 0x04, 0x04, 0x04, 0x04}, // 7 $37
wim 0:5265413226e5 50 {0x0E, 0x11, 0x11, 0x0E, 0x11, 0x11, 0x0E}, // 8 $38
wim 0:5265413226e5 51 {0x0E, 0x11, 0x11, 0x0F, 0x01, 0x01, 0x1E}, // 9 $39
wim 0:5265413226e5 52 {0x00, 0x0C, 0x0C, 0x00, 0x0C, 0x0C, 0x00}, // : $3A
wim 0:5265413226e5 53 {0x00, 0x0C, 0x0C, 0x00, 0x0C, 0x04, 0x08}, // ; $3B
wim 0:5265413226e5 54 {0x02, 0x04, 0x08, 0x10, 0x08, 0x04, 0x02}, // < $3C
wim 0:5265413226e5 55 {0x00, 0x00, 0x1F, 0x00, 0x1F, 0x00, 0x00}, // = $3D
wim 0:5265413226e5 56 {0x08, 0x04, 0x02, 0x01, 0x02, 0x04, 0x08}, // > $3E
wim 0:5265413226e5 57 {0x0E, 0x11, 0x02, 0x04, 0x04, 0x00, 0x04}, // ? $3F
wim 0:5265413226e5 58 {0x0E, 0x11, 0x15, 0x17, 0x10, 0x11, 0x0E}, // @ $40
wim 0:5265413226e5 59 {0x04, 0x0A, 0x11, 0x1F, 0x11, 0x11, 0x11}, // A $41
wim 0:5265413226e5 60 {0x1E, 0x09, 0x09, 0x0E, 0x09, 0x09, 0x1E}, // B $42
wim 0:5265413226e5 61 {0x0E, 0x11, 0x10, 0x10, 0x10, 0x11, 0x0E}, // C $43
wim 0:5265413226e5 62 {0x1E, 0x09, 0x09, 0x09, 0x09, 0x09, 0x1E}, // D $44
wim 0:5265413226e5 63 {0x1F, 0x10, 0x10, 0x1C, 0x10, 0x10, 0x1F}, // E $45
wim 0:5265413226e5 64 {0x1F, 0x10, 0x10, 0x1C, 0x10, 0x10, 0x10}, // F $46
wim 0:5265413226e5 65 {0x0F, 0x10, 0x10, 0x10, 0x17, 0x11, 0x0E}, // G $47
wim 0:5265413226e5 66 {0x11, 0x11, 0x11, 0x1F, 0x11, 0x11, 0x11}, // H $48
wim 0:5265413226e5 67 {0x0E, 0x04, 0x04, 0x04, 0x04, 0x04, 0x0E}, // I $49
wim 0:5265413226e5 68 {0x0E, 0x04, 0x04, 0x04, 0x04, 0x14, 0x08}, // J $4A
wim 0:5265413226e5 69 {0x11, 0x12, 0x14, 0x18, 0x14, 0x12, 0x11}, // K $4B
wim 0:5265413226e5 70 {0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x1F}, // L $4C
wim 0:5265413226e5 71 {0x11, 0x1B, 0x15, 0x15, 0x11, 0x11, 0x11}, // M $4D
wim 0:5265413226e5 72 {0x11, 0x11, 0x19, 0x15, 0x13, 0x11, 0x11}, // N $4E
wim 0:5265413226e5 73 {0x0E, 0x11, 0x11, 0x11, 0x11, 0x11, 0x0E}, // O $4F
wim 0:5265413226e5 74 {0x1E, 0x11, 0x11, 0x1E, 0x10, 0x10, 0x10}, // P $50
wim 0:5265413226e5 75 {0x0E, 0x11, 0x11, 0x11, 0x15, 0x12, 0x0D}, // Q $51
wim 0:5265413226e5 76 {0x1E, 0x11, 0x11, 0x1E, 0x14, 0x12, 0x11}, // R $52
wim 0:5265413226e5 77 {0x0E, 0x11, 0x10, 0x0E, 0x01, 0x11, 0x0E}, // S $53
wim 0:5265413226e5 78 {0x1F, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04}, // T $54
wim 0:5265413226e5 79 {0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x0E}, // U $55
wim 0:5265413226e5 80 {0x11, 0x11, 0x11, 0x11, 0x0A, 0x0A, 0x04}, // V $56
wim 0:5265413226e5 81 {0x11, 0x11, 0x11, 0x11, 0x15, 0x15, 0x0A}, // W $57
wim 0:5265413226e5 82 {0x11, 0x11, 0x0A, 0x04, 0x0A, 0x11, 0x11}, // X $58
wim 0:5265413226e5 83 {0x11, 0x11, 0x0A, 0x0A, 0x04, 0x04, 0x04}, // Y $59
wim 0:5265413226e5 84 {0x1F, 0x01, 0x02, 0x04, 0x08, 0x10, 0x1F}, // Z $5A
wim 0:5265413226e5 85 {0x0F, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0F}, // [ $5B
wim 0:5265413226e5 86 {0x00, 0x10, 0x08, 0x04, 0x02, 0x01, 0x00}, // \ $5C
wim 0:5265413226e5 87 {0x1E, 0x02, 0x02, 0x02, 0x02, 0x02, 0x1E}, // ] $5D
wim 0:5265413226e5 88 {0x04, 0x0A, 0x11, 0x00, 0x00, 0x00, 0x00}, // ^ $5E
wim 0:5265413226e5 89 {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1F}, // _ $5F
wim 0:5265413226e5 90 {0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00}, // ' $60
wim 0:5265413226e5 91 {0x00, 0x0E, 0x01, 0x0D, 0x13, 0x11, 0x0F}, // a $61
wim 0:5265413226e5 92 {0x10, 0x10, 0x10, 0x16, 0x19, 0x11, 0x1E}, // b $62
wim 0:5265413226e5 93 {0x00, 0x00, 0x0F, 0x10, 0x10, 0x10, 0x0F}, // c $63
wim 0:5265413226e5 94 {0x01, 0x01, 0x01, 0x0D, 0x13, 0x11, 0x0F}, // d $64
wim 0:5265413226e5 95 {0x00, 0x00, 0x0E, 0x11, 0x1E, 0x10, 0x0E}, // e $65
wim 0:5265413226e5 96 {0x06, 0x09, 0x08, 0x1C, 0x08, 0x08, 0x08}, // f $66
wim 0:5265413226e5 97 {0x00, 0x0F, 0x11, 0x13, 0x0D, 0x01, 0x0E}, // g $67
wim 0:5265413226e5 98 {0x10, 0x10, 0x10, 0x16, 0x19, 0x11, 0x11}, // h $68
wim 0:5265413226e5 99 {0x00, 0x04, 0x00, 0x04, 0x04, 0x04, 0x04}, // i $69
wim 0:5265413226e5 100 {0x00, 0x02, 0x00, 0x02, 0x02, 0x12, 0x0C}, // j $6A
wim 0:5265413226e5 101 {0x10, 0x10, 0x11, 0x12, 0x1C, 0x12, 0x11}, // k $6B
wim 0:5265413226e5 102 {0x0C, 0x04, 0x04, 0x04, 0x04, 0x04, 0x0E}, // l $6C
wim 0:5265413226e5 103 {0x00, 0x00, 0x1A, 0x15, 0x15, 0x15, 0x15}, // m $6D
wim 0:5265413226e5 104 {0x00, 0x00, 0x16, 0x19, 0x11, 0x11, 0x11}, // n $6E
wim 0:5265413226e5 105 {0x00, 0x00, 0x0E, 0x11, 0x11, 0x11, 0x0E}, // o $6F
wim 0:5265413226e5 106 {0x00, 0x1E, 0x11, 0x19, 0x16, 0x10, 0x10}, // p $70
wim 0:5265413226e5 107 {0x00, 0x0F, 0x11, 0x13, 0x0D, 0x01, 0x01}, // q $71
wim 0:5265413226e5 108 {0x00, 0x00, 0x16, 0x19, 0x10, 0x10, 0x10}, // r $72
wim 0:5265413226e5 109 {0x00, 0x00, 0x0F, 0x10, 0x0E, 0x01, 0x1E}, // s $73
wim 0:5265413226e5 110 {0x04, 0x04, 0x0E, 0x04, 0x04, 0x05, 0x02}, // t $74
wim 0:5265413226e5 111 {0x00, 0x00, 0x11, 0x11, 0x11, 0x13, 0x0D}, // u $75
wim 0:5265413226e5 112 {0x00, 0x00, 0x11, 0x11, 0x11, 0x0A, 0x04}, // v $76
wim 0:5265413226e5 113 {0x00, 0x00, 0x11, 0x11, 0x15, 0x15, 0x0A}, // w $77
wim 0:5265413226e5 114 {0x00, 0x00, 0x11, 0x0A, 0x04, 0x0A, 0x11}, // x $78
wim 0:5265413226e5 115 {0x00, 0x00, 0x11, 0x11, 0x0F, 0x02, 0x0C}, // y $79
wim 0:5265413226e5 116 {0x00, 0x00, 0x1F, 0x02, 0x04, 0x08, 0x1F}, // z $7A
wim 0:5265413226e5 117 {0x03, 0x04, 0x04, 0x08, 0x04, 0x04, 0x03}, // { $7B
wim 0:5265413226e5 118 {0x04, 0x04, 0x04, 0x00, 0x04, 0x04, 0x04}, // | $7C
wim 0:5265413226e5 119 {0x18, 0x04, 0x04, 0x02, 0x04, 0x04, 0x18}, // } $7D
wim 0:5265413226e5 120 {0x08, 0x15, 0x02, 0x00, 0x00, 0x00, 0x00}, // ~ $7E
wim 0:5265413226e5 121 {0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F} // square $7F
wim 0:5265413226e5 122 };
wim 0:5265413226e5 123
wim 0:5265413226e5 124 #endif