Library for Princeton PT6961 LED driver. Supports 6 digits @ 12 segments or 7 digits @ 11 segments. Also supports keyboard scanning of upto 30 keys. SPI interface.
This LED driver is found in frontpanel controllers of consumer electronics such as DVD players. The added features such as the matrix keyboard scanning are useful in these applications.
Additional information is available on the component page here
PT6961_Config.h@2:c6883ede8d8b, 2016-01-14 (annotated)
- Committer:
- wim
- Date:
- Thu Jan 14 20:03:13 2016 +0000
- Revision:
- 2:c6883ede8d8b
- Parent:
- 1:eb4758bba68a
Refactored display and keyboard defines
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wim | 1:eb4758bba68a | 1 | /* mbed PT6961 Library, for Princeton PT6961 LED controller |
wim | 1:eb4758bba68a | 2 | * Copyright (c) 2015, v01: WH, Initial version, Test DVD HR734, MUSTEK V56S |
wim | 1:eb4758bba68a | 3 | * |
wim | 1:eb4758bba68a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
wim | 1:eb4758bba68a | 5 | * of this software and associated documentation files (the "Software"), to deal |
wim | 1:eb4758bba68a | 6 | * in the Software without restriction, including without limitation the rights |
wim | 1:eb4758bba68a | 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
wim | 1:eb4758bba68a | 8 | * copies of the Software, and to permit persons to whom the Software is |
wim | 1:eb4758bba68a | 9 | * furnished to do so, subject to the following conditions: |
wim | 1:eb4758bba68a | 10 | * |
wim | 1:eb4758bba68a | 11 | * The above copyright notice and this permission notice shall be included in |
wim | 1:eb4758bba68a | 12 | * all copies or substantial portions of the Software. |
wim | 1:eb4758bba68a | 13 | * |
wim | 1:eb4758bba68a | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
wim | 1:eb4758bba68a | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
wim | 1:eb4758bba68a | 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
wim | 1:eb4758bba68a | 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
wim | 1:eb4758bba68a | 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
wim | 1:eb4758bba68a | 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
wim | 1:eb4758bba68a | 20 | * THE SOFTWARE. |
wim | 1:eb4758bba68a | 21 | */ |
wim | 1:eb4758bba68a | 22 | |
wim | 1:eb4758bba68a | 23 | #ifndef PT6961_CONFIG_H |
wim | 1:eb4758bba68a | 24 | #define PT6961_CONFIG_H |
wim | 1:eb4758bba68a | 25 | |
wim | 1:eb4758bba68a | 26 | // Select one of the testboards for Princeton PT6961 LED controller |
wim | 1:eb4758bba68a | 27 | #define PT6961_TEST 0 |
wim | 1:eb4758bba68a | 28 | #define HR734_TEST 1 |
wim | 1:eb4758bba68a | 29 | #define V56S_TEST 0 |
wim | 1:eb4758bba68a | 30 | |
wim | 1:eb4758bba68a | 31 | #endif |