Library for Princeton PT6301 VFD controller. Used in Futaba CIG VFD tubes.

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PT6301_UDC.h Source File

PT6301_UDC.h

00001 /* mbed PT6301 UDC Library, for Princeton PT6301 VFD controller
00002  *             The controller is used by Futaba 'Chip In Glass' (CIG) VFD tubes. 
00003  *
00004  * Copyright (c) 2021, v01: WH, Initial version
00005  *
00006  * Permission is hereby granted, free of charge, to any person obtaining a copy
00007  * of this software and associated documentation files (the "Software"), to deal
00008  * in the Software without restriction, including without limitation the rights
00009  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00010  * copies of the Software, and to permit persons to whom the Software is
00011  * furnished to do so, subject to the following conditions:
00012  *
00013  * The above copyright notice and this permission notice shall be included in
00014  * all copies or substantial portions of the Software.
00015  *
00016  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00019  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00020  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00021  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
00022  * THE SOFTWARE.
00023  */
00024 #ifndef MBED_PT6301_UDC_H
00025 #define MBED_PT6301_UDC_H
00026 
00027 #include "PT6301_Config.h"
00028 
00029 #if(PT6301_UDC == 1)
00030 // User Defined Characters (UDCs) consist of 5x7 dots and are defined by a 5 byte bitpattern.
00031 // The C0..C34 form the character pattern.
00032 //     D7 D6  D5  D4  D3 D2 D1 D0 
00033 // 0   x  C30 C25 C20 ......   C0
00034 // 1   x  C31 C24  ........... C1
00035 // .       .............
00036 // 4   x  C34 C29  ........... C4
00037 //
00038 //
00039 // The UDC matrix will show on the VFD as
00040 // 0   C0  C1  C2  C3  C4
00041 // 1   C5  C6 .....    C9
00042 // .    .............
00043 // .    .............
00044 // .    .............
00045 // 6   C30 C31 ...     C34
00046 //
00047 
00048 
00049 // Some sample User Defined Chars 5x7 dots */
00050 //extern const char udc_Bat_Hi[];  // Battery Full
00051 //extern const char udc_Bat_Ha[];  // Battery Half
00052 //extern const char udc_Bat_Lo[];  // Battery Low
00053 //extern const char udc_checker[];                          
00054                                           
00055 //extern const char udc_PO[];    //Padlock Open
00056 //extern const char udc_PC[];    //Padlock Closed
00057 
00058 extern const char udc_LAR[];   // Left Arrow
00059 extern const char udc_RAR[];   // Right Arrow
00060 #endif
00061 
00062 #endif