📄 mizuda_vfd_101.c
字号:
/****************************************************************************************************
* Copyright (c) 2005 ZORAN Corporation, All Rights Reserved
* Created by William Lei 2005/12/25
*
* File: fp_handler_config.c
*
* Description:
* =========
*
****************************************************************************************************/
#define D_VFD_7SEG
#include "UI_Manager\FP_Handler\fp_handler_config.h"
#ifndef D_TEST
#define MAX_GRID 7
#endif
#define MAX_DIGIT 7
//客户信息
//customer's informaton
//请告诉我们VFD 驱动芯片的型号和数字符号的大概间隔和位置
//Please tell us the type of the VFD driver chip , the position and space of the digital number signs
//1. 6312 2. 6311
//请告诉我们图标所在的位置
//Please tell us about your icon's locations!
#define VFD_ANGLE 0x0000
#define VFD_DVD G1P10
#define VFD_SUPER 0x0000
#define VFD_V 0x0000
#define VFD_CD 0x0000
#define VFD_SVCD 0x0000
#define VFD_VCD G2P10
#define VFD_MP3 G3P10
#define VFD_MP4 0x0000
#define VFD_S1 G1P9
#define VFD_S1_ G4P9
#define VFD_S2 G2P9
#define VFD_S2_ G3P9
#define VFD_S3 G6P9
#define VFD_S3_ G5P9
#define VFD_S4 G7P9
#define VFD_S4_ G7P10
#define VFD_S5 0x0000
#define VFD_S6 0x0000
#define VFD_S7 0x0000
#define VFD_S8 0x0000
#define VFD_S9 0x0000
#define VFD_S10 0x0000
#define VFD_S11 0x0000
#define VFD_S12 0x0000
#define VFD_S13 0x0000
#define VFD_PBC G4P10
#define VFD_PROGRAM 0x0000
#define VFD_RAND 0x0000
#define VFD_REPEAT G1P7
#define VFD_ALL 0x0000
#define VFD_A_MINUS 0x0000
#define VFD_B_END 0x0000
#define VFD_PLAY G5P10
#define VFD_PAUSE G6P10
#define VFD_DTS G5P7
#define VFD_DOLBY G4P7
#define VFD_TOTAL 0x0000
#define VFD_DIGITAL 0x0000
#define VFD_PROLOGIC 0x0000
#define VFD_TITLE 0x0000
#define VFD_CHAPTER 0x0000
#define VFD_TOTAL 0x0000
#define VFD_LOCK 0x0000
#define VFD_KARAOKE 0x0000
#define VFD_AM 0x0000
#define VFD_FM 0x0000
#define VFD_MEMORY 0x0000
#define VFD_KHZ 0x0000
#define VFD_MHZ 0x0000
#define VFD_SIGNAL 0x0000
#define VFD_DOT 0x0000
#define VFD_TRACK_COL 0x0000
#define VFD_HOUR_COL G2P7
#define VFD_MIN_COL G3P7
#define VFD_S_NUM 4
#define VFD_S_LIGHT 6
#if VFD_S_NUM
CONST unsigned int VFD_S_Rotate[VFD_S_NUM][VFD_S_LIGHT] =
{
{/*VFD_S1, VFD_S1_,*/VFD_S2,VFD_S2_,VFD_S3,VFD_S3_, VFD_S4,VFD_S4_,},
{VFD_S1, VFD_S1_,/*VFD_S2,VFD_S2_,*/VFD_S3,VFD_S3_, VFD_S4,VFD_S4_,},
{VFD_S1, VFD_S1_,VFD_S2,VFD_S2_,/*VFD_S3,VFD_S3_,*/VFD_S4,VFD_S4_,},
{VFD_S1, VFD_S1_,VFD_S2,VFD_S2_,VFD_S3,VFD_S3_,/* VFD_S4,VFD_S4_,*/},
};
#endif
/*
* 7 segment:
* a
* -------
* f| \ | b
* |h \ |
* -------
* e|g \ | c
* | h\ |
* -------
* d
*/
const unsigned int VFD_Char_Segments[7][8] = {
// 从左到右第一个显示数字的符号(the first digit from left to right)
/*1*/ {/*a*/G1P1, /*b*/G2P1, /*c*/G3P1, /*d*/G4P1, /*e*/G5P1,
/*f*/G6P1, /*g*/G7P1, /*h*/CHAR_},
// 从左到右第二个显示数字的符号(the second digit from left to right)
/*2*/ {/*a*/G1P2, /*b*/G2P2, /*c*/G3P2, /*d*/G4P2, /*e*/G5P2,
/*f*/G6P2, /*g*/G7P2, /*h*/CHAR_},
// 从左到右第三个显示数字的符号(the third digit from left to right)
/*3*/ {/*a*/G1P8, /*b*/G2P8, /*c*/G3P8, /*d*/G4P8, /*e*/G5P8,
/*f*/G6P8, /*g*/G7P8, /*h*/CHAR_},
// 从左到右第四个显示数字的符号(the forth digit from left to right)
/*4*/ {/*a*/G1P3, /*b*/G2P3, /*c*/G3P3, /*d*/G4P3, /*e*/G5P3,
/*f*/G6P3, /*g*/G7P3, /*h*/CHAR_},
// 从左到右第五个显示数字的符号(the fifth digit from left to right)
/*5*/ {/*a*/G1P4, /*b*/G2P4, /*c*/G3P4, /*d*/G4P4, /*e*/G5P4,
/*f*/G6P4, /*g*/G7P4, /*h*/CHAR_},
// 从左到右第六个显示数字的符号(the sixth digit from left to right)
/*6*/ {/*a*/G1P5, /*b*/G2P5, /*c*/G3P5, /*d*/G4P5, /*e*/G5P5,
/*f*/G6P5, /*g*/G7P5, /*h*/CHAR_},
// 从左到右第七个显示数字的符号(the seventh digit from left to right)
/*7*/ {/*a*/G1P6, /*b*/G2P6, /*c*/G3P6, /*d*/G4P6, /*e*/G5P6,
/*f*/G6P6, /*g*/G7P6, /*h*/CHAR_},
};
//for DVD location
#define VFD_DVD_TITLE_HI 0
#define VFD_DVD_TITLE_LO 0
#define VFD_DVD_CHAPTER_HI 0
#define VFD_DVD_CHAPTER_LO 0
#define VFD_DVD_HOUR VFD_DIGIT_NO_3
#define VFD_DVD_HOUR_COL VFD_HOUR_COL
//for MP3/JPEG/WMA/DIVX
#define VFD_CDR_TRACK_FOUR 0
#define VFD_CDR_TRACK_THREE VFD_DIGIT_NO_1
#define VFD_CDR_TRACK_TWO VFD_DIGIT_NO_2
#define VFD_CDR_TRACK_ONE VFD_DIGIT_NO_3
#define VFD_CDR_TRACK_COL G7P8
//for VCD/SVCD/CD
#define VFD_CD_TRACK_HI VFD_DIGIT_NO_1
#define VFD_CD_TRACK_LO VFD_DIGIT_NO_2
#define VFD_CD_TRACK_COL G7P8
//for VCD/SVCD/CD/CDR hour & Col
#define VFD_CD_HOUR 0
#define VFD_CD_HOUR_COL 0
//for all disc min & sec
#define VFD_MIN_HI VFD_DIGIT_NO_4
#define VFD_MIN_LO VFD_DIGIT_NO_5
#define VFD_SEC_HI VFD_DIGIT_NO_6
#define VFD_SEC_LO VFD_DIGIT_NO_7
#define VFD_CD_MIN_COL VFD_MIN_COL
//for tuner mode
#define VFD_TUNER_STATION_HI VFD_DIGIT_NO_1
#define VFD_TUNER_STATION_LO VFD_DIGIT_NO_2
#define VFD_TUNER_FREQ_FOUR VFD_DIGIT_NO_6
#define VFD_TUNER_FREQ_THREE VFD_DIGIT_NO_7
#define VFD_TUNER_FREQ_TWO VFD_DIGIT_NO_8
#define VFD_TUNER_FREQ_ONE VFD_DIGIT_NO_9
//VFD String
static LPCSTR VFD_Load_Str = " LOAD";
static LPCSTR VFD_Open_Str = " OPEN";
static LPCSTR VFD_Close_Str = " CLOSE";
static LPCSTR VFD_Nodisc_Str = "NO DISC";
static LPCSTR VFD_Nocard_Str = "NO CARD";
static LPCSTR VFD_Baddisc_Str = " ERROR";
static LPCSTR VFD_Badcard_Str = "BADCARD";
static LPCSTR VFD_Hdcd_Str = " HDCD";
static LPCSTR VFD_Cdupdate_Str = " UPDATE";
static LPCSTR VFD_Off_Str = " ";//" OFF ";
static LPCSTR VFD_Jpeg_Str = " JPEG";
static LPCSTR VFD_Philips_Str = "PHILIPS";
static LPCSTR VFD_CDDA_Str = " CDDA";
static LPCSTR VFD_VCD_Str = " VCD";
static LPCSTR VFD_SVCD_Str = " SVCD";
static LPCSTR VFD_DVD_Str = " DVD";
static LPCSTR VFD_Stop_Str = " STOP";
static LPCSTR VFD_Standby_Str = " -OFF-";
//客户信息结束
//the end of customer's information
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -