Lib for Noritake Itron CU209SCPB VFD Module (1 Line, 20 Chars), Serial interface
Dependents: mbed_CU209SCPB_T20
CU209SCPB_UDC.inc
00001 /* mbed CU209SCPB UDC Library, for Noritake Itron CU209SCPB VFD module 00002 * 00003 * Copyright (c) 2017, v01: WH, Initial version 00004 * 00005 * Permission is hereby granted, free of charge, to any person obtaining a copy 00006 * of this software and associated documentation files (the "Software"), to deal 00007 * in the Software without restriction, including without limitation the rights 00008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00009 * copies of the Software, and to permit persons to whom the Software is 00010 * furnished to do so, subject to the following conditions: 00011 * 00012 * The above copyright notice and this permission notice shall be included in 00013 * all copies or substantial portions of the Software. 00014 * 00015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00021 * THE SOFTWARE. 00022 */ 00023 #include "CU209SCPB_Config.h" 00024 00025 #if(CU209SCPB_UDC == 1) 00026 00027 //User Defined Characters (UDCs) are a 5x7 Matrix pattern that will show on the VFD as 00028 // 0 P1 P2 P3 P4 P5 00029 // 1 P6 P7 ..... P10 00030 // . ............. 00031 // . ............. 00032 // . ............. 00033 // 6 P31 P32 ... P35 00034 // 00035 00036 //UDCs are defined by sending a 5 byte bitpattern to the display. 00037 //UDC Command: ESC, 'C', UDC idx 00038 //Followed by: 00039 //UDC Data (4th byte .. 8th byte) 00040 // D7 D6 D5 D4 D3 D2 D1 D0 00041 // 0 P8 P7 P6 ...... P3 P2 P1 00042 // 1 P16 P15 P14 ........ P10 P9 00043 // 2 P24 P23 P22 .......... P17 00044 // 3 P32 P31 P30 ............ P25 00045 // 4 * * * .... * P35 P34 P33 00046 // 00047 00048 //UDCs are defined by a 5x7 matrix and stored for convenience as 7 bytes with 5 significant bits 00049 //The patterns below will show up in mirrored form on the display 00050 // 00051 // Some sample User Defined Chars 5x7 dots */ 00052 const char udc_Bat_Hi[] = {0x0E, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F}; // Battery Full 00053 const char udc_Bat_Ha[] = {0x0E, 0x11, 0x13, 0x17, 0x1F, 0x1F, 0x1F}; // Battery Half 00054 const char udc_Bat_Lo[] = {0x0E, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11}; // Battery Low 00055 const char udc_checker[] = {0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA}; 00056 00057 //const char udc_PO[] = {0x04, 0x0A, 0x0A, 0x1F, 0x1B, 0x1B, 0x1B}; //Padlock Open 00058 //const char udc_PC[] = {0x1C, 0x10, 0x08, 0x1F, 0x1B, 0x1B, 0x1B}; //Padlock Closed 00059 00060 const char udc_LAR[] = {0x07, 0x03, 0x05, 0x04, 0x04, 0x04, 0x04}; // Left Arrow 00061 const char udc_RAR[] = {0x1C, 0x18, 0x14, 0x04, 0x04, 0x04, 0x04}; // Right Arrow 00062 #endif
Generated on Thu Jul 14 2022 03:45:45 by 1.7.2