Sanyo LC75711 VFD controller/driver for upto 16 Dot Matrix Characters
The component page is here.
LC75711_UDC.h@3:8101f714d38d, 2017-09-17 (annotated)
- Committer:
- wim
- Date:
- Sun Sep 17 13:32:22 2017 +0000
- Revision:
- 3:8101f714d38d
- Parent:
- 0:5eb5fee234e8
Minor Cleanup and added comments
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wim | 0:5eb5fee234e8 | 1 | /* mbed LC75710 Library, for Sanyo LC7571X VFD controller |
wim | 0:5eb5fee234e8 | 2 | * Note: The LC75710, LC75711 and LC75712 differ only in the built-in character ROM |
wim | 0:5eb5fee234e8 | 3 | * |
wim | 0:5eb5fee234e8 | 4 | * Copyright (c) 2017, v01: WH, Initial version |
wim | 0:5eb5fee234e8 | 5 | * 2017, v02: WH, Added some UDC definitions |
wim | 0:5eb5fee234e8 | 6 | * |
wim | 0:5eb5fee234e8 | 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
wim | 0:5eb5fee234e8 | 8 | * of this software and associated documentation files (the "Software"), to deal |
wim | 0:5eb5fee234e8 | 9 | * in the Software without restriction, including without limitation the rights |
wim | 0:5eb5fee234e8 | 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
wim | 0:5eb5fee234e8 | 11 | * copies of the Software, and to permit persons to whom the Software is |
wim | 0:5eb5fee234e8 | 12 | * furnished to do so, subject to the following conditions: |
wim | 0:5eb5fee234e8 | 13 | * |
wim | 0:5eb5fee234e8 | 14 | * The above copyright notice and this permission notice shall be included in |
wim | 0:5eb5fee234e8 | 15 | * all copies or substantial portions of the Software. |
wim | 0:5eb5fee234e8 | 16 | * |
wim | 0:5eb5fee234e8 | 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
wim | 0:5eb5fee234e8 | 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
wim | 0:5eb5fee234e8 | 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
wim | 0:5eb5fee234e8 | 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
wim | 0:5eb5fee234e8 | 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
wim | 0:5eb5fee234e8 | 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
wim | 0:5eb5fee234e8 | 23 | * THE SOFTWARE. |
wim | 0:5eb5fee234e8 | 24 | */ |
wim | 0:5eb5fee234e8 | 25 | #ifndef MBED_LC75711_UDC_H |
wim | 0:5eb5fee234e8 | 26 | #define MBED_LC75711_UDC_H |
wim | 0:5eb5fee234e8 | 27 | |
wim | 0:5eb5fee234e8 | 28 | #include "LC75711_Config.h" |
wim | 0:5eb5fee234e8 | 29 | |
wim | 0:5eb5fee234e8 | 30 | #if(LC75711_UDC == 1) |
wim | 3:8101f714d38d | 31 | // User Defined Characters (UDCs) are defined by a 7 byte bitpattern. |
wim | 3:8101f714d38d | 32 | // The P0..P4 form the UDC pattern. |
wim | 3:8101f714d38d | 33 | // P7 P6 P5 P4 P3 P2 P1 P0 |
wim | 3:8101f714d38d | 34 | // 0 x x x CD4 CD3 CD2 CD1 CD1 |
wim | 3:8101f714d38d | 35 | // 1 x x x CD9 CD8 CD7 CD6 CD5 |
wim | 0:5eb5fee234e8 | 36 | // . ............. |
wim | 3:8101f714d38d | 37 | // 6 x x x C35 C34 ... C31 |
wim | 0:5eb5fee234e8 | 38 | // |
wim | 3:8101f714d38d | 39 | // The UDC matrix will show on the VFD as |
wim | 3:8101f714d38d | 40 | // 0 CD1 CD2 CD3 CD4 CD5 |
wim | 3:8101f714d38d | 41 | // 1 CD6 CD7 ....... CD10 |
wim | 3:8101f714d38d | 42 | // . ............. |
wim | 3:8101f714d38d | 43 | // . ............. |
wim | 3:8101f714d38d | 44 | // . ............. |
wim | 3:8101f714d38d | 45 | // 6 CD31 C32 ....... CD35 |
wim | 0:5eb5fee234e8 | 46 | // |
wim | 3:8101f714d38d | 47 | |
wim | 3:8101f714d38d | 48 | |
wim | 0:5eb5fee234e8 | 49 | // Some sample User Defined Chars 5x7 dots */ |
wim | 0:5eb5fee234e8 | 50 | extern const char udc_Bat_Hi[]; // Battery Full |
wim | 0:5eb5fee234e8 | 51 | extern const char udc_Bat_Ha[]; // Battery Half |
wim | 0:5eb5fee234e8 | 52 | extern const char udc_Bat_Lo[]; // Battery Low |
wim | 0:5eb5fee234e8 | 53 | extern const char udc_checker[]; |
wim | 0:5eb5fee234e8 | 54 | |
wim | 0:5eb5fee234e8 | 55 | //extern const char udc_PO[]; //Padlock Open |
wim | 0:5eb5fee234e8 | 56 | //extern const char udc_PC[]; //Padlock Closed |
wim | 0:5eb5fee234e8 | 57 | |
wim | 0:5eb5fee234e8 | 58 | // |
wim | 3:8101f714d38d | 59 | // NOTE: the bitpatterns below still need to be flipped or they will be mirrored on the display... |
wim | 0:5eb5fee234e8 | 60 | // |
wim | 0:5eb5fee234e8 | 61 | //extern const char udc_ae[]; //æ |
wim | 0:5eb5fee234e8 | 62 | //extern const char udc_0e[]; //ø |
wim | 0:5eb5fee234e8 | 63 | //extern const char udc_ao[]; //å |
wim | 0:5eb5fee234e8 | 64 | //extern const char udc_AE[]; //Æ |
wim | 0:5eb5fee234e8 | 65 | //extern const char udc_0E[]; //Ø |
wim | 0:5eb5fee234e8 | 66 | //extern const char udc_Ao[]; //Å |
wim | 0:5eb5fee234e8 | 67 | |
wim | 0:5eb5fee234e8 | 68 | //extern const char udc_alpha[] //alpha |
wim | 0:5eb5fee234e8 | 69 | //extern const char udc_ohm[]; //ohm |
wim | 0:5eb5fee234e8 | 70 | //extern const char udc_sigma[]; //sigma |
wim | 0:5eb5fee234e8 | 71 | //extern const char udc_pi[]; //pi |
wim | 0:5eb5fee234e8 | 72 | //extern const char udc_root[]; //root |
wim | 0:5eb5fee234e8 | 73 | |
wim | 0:5eb5fee234e8 | 74 | //extern const char udc_TM_T[]; // Trademark T |
wim | 0:5eb5fee234e8 | 75 | //extern const char udc_TM_M[]; // Trademark M |
wim | 0:5eb5fee234e8 | 76 | #endif |
wim | 0:5eb5fee234e8 | 77 | |
wim | 0:5eb5fee234e8 | 78 | #endif |