📄 vfd32.h
字号:
#ifndef __HT_13D_15S_H
#define __HT_13D_15S_H
/* The following describe NINTAUS N701 Panel */
/* */
#define DOT_G5P16 0x00
#define DOT_G5P15 0x01
#define DOT_G5P14 0x02
#define DOT_G5P13 0x03
#define DOT_G5P12 0x04
#define DOT_G5P11 0x05
#define DOT_G5P10 0x06
#define DOT_G5P9 0x07
#define DOT_G5P8 0x08
#define DOT_G5P7 0x09
#define DOT_G5P6 0x0a
#define DOT_G5P5 0x0b
#define DOT_G5P4 0x0c
#define DOT_G5P3 0x0d
#define DOT_G5P2 0x0e
#define DOT_G5P1 0x0f
#define DOT_G4P16 0x10
#define DOT_G4P15 0x11
#define DOT_G4P14 0x12
#define DOT_G4P13 0x13
#define DOT_G4P12 0x14
#define DOT_G4P11 0x15
#define DOT_G4P10 0x16
#define DOT_G4P9 0x17
#define DOT_G4P8 0x18
#define DOT_G4P7 0x19
#define DOT_G4P6 0x1a
#define DOT_G4P5 0x1b
#define DOT_G4P4 0x1c
#define DOT_G4P3 0x1d
#define DOT_G4P2 0x1e
#define DOT_G4P1 0x1f
#define DOT_G3P16 0x20
#define DOT_G3P15 0x21
#define DOT_G3P14 0x22
#define DOT_G3P13 0x23
#define DOT_G3P12 0x24
#define DOT_G3P11 0x25
#define DOT_G3P10 0x26
#define DOT_G3P9 0x27
#define DOT_G3P8 0x28
#define DOT_G3P7 0x29
#define DOT_G3P6 0x2a
#define DOT_G3P5 0x2b
#define DOT_G3P4 0x2c
#define DOT_G3P3 0x2d
#define DOT_G3P2 0x2e
#define DOT_G3P1 0x2f
#define DOT_G2P16 0x30
#define DOT_G2P15 0x31
#define DOT_G2P14 0x32
#define DOT_G2P13 0x33
#define DOT_G2P12 0x34
#define DOT_G2P11 0x35
#define DOT_G2P10 0x36
#define DOT_G2P9 0x37
#define DOT_G2P8 0x38
#define DOT_G2P7 0x39
#define DOT_G2P6 0x3a
#define DOT_G2P5 0x3b
#define DOT_G2P4 0x3c
#define DOT_G2P3 0x3d
#define DOT_G2P2 0x3e
#define DOT_G2P1 0x3f
#define DOT_G1P16 0x40
#define DOT_G1P15 0x41
#define DOT_G1P14 0x42
#define DOT_G1P13 0x43
#define DOT_G1P12 0x44
#define DOT_G1P11 0x45
#define DOT_G1P10 0x46
#define DOT_G1P9 0x47
#define DOT_G1P8 0x48
#define DOT_G1P7 0x49
#define DOT_G1P6 0x4a
#define DOT_G1P5 0x4b
#define DOT_G1P4 0x4c
#define DOT_G1P3 0x4d
#define DOT_G1P2 0x4e
#define DOT_G1P1 0x4f
#if 0
#define VFD_DOT_PGM01 (92)
#define VFD_DOT_PGM02 (93)
#define VFD_DOT_PGM03 (94)
#define VFD_DOT_PGM04 (95)
#define VFD_DOT_PGM05 (88)
#define VFD_DOT_PGM06 (89)
#define VFD_DOT_PGM07 (90)
#define VFD_DOT_PGM08 (91)
#define VFD_DOT_PGM09 (84)
#define VFD_DOT_PGM10 (85)
#define VFD_DOT_PGM11 (86)
#define VFD_DOT_PGM12 (87)
#define VFD_DOT_PGM13 (80)
#define VFD_DOT_PGM14 (81)
#define VFD_DOT_PGM15 (82)
#define VFD_DOT_PGM16 (83)
#endif
#define VFD_DOT_PBC DOT_G5P1//(31)//BYTE 3,bit 7
#define VFD_DOT_ANGLE DOT_G4P1//(47)//BYTE 5,bit 7
#define VFD_DOT_MINSEC DOT_G4P9//(39)//BYTE 4, bit 7
#define VFD_DOT_MIN DOT_G3P9//(55)//BYTE 6, bit 7
#define VFD_DOT_DOBLY DOT_G3P1//(63)//BYTE 7, bit 7
#define VFD_DOT_DVD DOT_G1P1//(95)//BYTE 11,bit 7
#define VFD_DOT_CD DOT_G2P4//(76)//BYTE 9,bit 4
#define VFD_DOT_V DOT_G2P3//(77)//BYTE 9,bit 5
#define VFD_DOT_S DOT_G2P2//(78)//BYTE 9,bit 6
#define VFD_DOT_MP3 DOT_G5P2//(30)//BYTE 9,bit 6//nono 2-4-29 23:23
#define VFD_DOT_DTS DOT_G2P1//(79)//BYTE 9,bit 7
#define VFD_DOT_PLAY DOT_G2P5//(75)//BYTE 9,bit 3
#define VFD_DOT_REPALL DOT_G2P7//(73)//BYTE 9,bit 1
#define VFD_DOT_REPEAT DOT_G2P8//(72)//BYTE 9,bit 0
#define VFD_DOT_REPAB DOT_G1P16//(72)//BYTE 9,bit 0
#define VFD_DOT_PAUSE DOT_G2P6//(74)//BYTE 9,bit 2
#if 0
#define VFDA_T20 6
#define VFDA_T21 7
#define VFDA_T10 9
#define VFDA_T11 10
#define VFDA_T00 12
#define VFDA_T01 13
#define VFDA_P10 15
#define VFDA_P11 16
#define VFDA_P00 18
#define VFDA_P01 19
#define VFDA_CHAR00 21
#define VFDA_CHAR01 22
#define VFDA_M10 24
#define VFDA_M11 25
#define VFDA_M00 27
#define VFDA_M01 28
#define VFDA_S10 30
#define VFDA_S11 31
#define VFDA_S00 33
#define VFDA_S01 34
#define VFDA_T0 1
#define VFDA_T1 0
#define VFDA_P0 3//1
#define VFDA_P1 2//0
#define VFDA_M0 6//5
#define VFDA_M1 8//4
#define VFDA_S0 11//7
#define VFDA_S1 10//6
#define VFDA_CHAR 4
#endif
/*
** Definition for 7-seg display
**
** we assume 7-seg are defined as traditional 7-segment LED.
**
** AAAA
** C B
** C B
** DDDD
** F E
** F E
** GGGG
**
**
*/
/*
#define VFD_7SEG_SG (0x01)
#define VFD_7SEG_SF (0x02)
#define VFD_7SEG_SE (0x04)
#define VFD_7SEG_SD (0x08)
#define VFD_7SEG_SC (0x10)
#define VFD_7SEG_SB (0x20)
#define VFD_7SEG_SA (0x40)
#define VFD_7SEG_0 (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SG|VFD_7SEG_SC|VFD_7SEG_SE|VFD_7SEG_SF)
#define VFD_7SEG_1 (VFD_7SEG_SB|VFD_7SEG_SE)
#define VFD_7SEG_2 (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SD|VFD_7SEG_SF|VFD_7SEG_SG)
#define VFD_7SEG_3 (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SD|VFD_7SEG_SE|VFD_7SEG_SG)
#define VFD_7SEG_4 (VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SB|VFD_7SEG_SE)
#define VFD_7SEG_5 (VFD_7SEG_SA|VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SE|VFD_7SEG_SG)
#define VFD_7SEG_6 (VFD_7SEG_SA|VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SF|VFD_7SEG_SE|VFD_7SEG_SG)
#define VFD_7SEG_7 (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SE)
#define VFD_7SEG_8 (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SE|VFD_7SEG_SF|VFD_7SEG_SG)
#define VFD_7SEG_9 (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SE|VFD_7SEG_SG)
#define VFD_7SEG_DIG_MASK (VFD_7SEG_8)
#define VFD_7SEG_A (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SC|VFD_7SEG_SE|VFD_7SEG_SF|VFD_7SEG_SD)
#define VFD_7SEG_b (VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SE|VFD_7SEG_SF|VFD_7SEG_SG)
#define VFD_7SEG_B VFD_7SEG_b
#define VFD_7SEG_C (VFD_7SEG_SA|VFD_7SEG_SC|VFD_7SEG_SF|VFD_7SEG_SG)
#define VFD_7SEG_d (VFD_7SEG_SB|VFD_7SEG_SD|VFD_7SEG_SE|VFD_7SEG_SF|VFD_7SEG_SG)
#define VFD_7SEG_D VFD_7SEG_d
#define VFD_7SEG_E (VFD_7SEG_SA|VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SF|VFD_7SEG_SG)
#define VFD_7SEG_F (VFD_7SEG_SA|VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SF)
#define VFD_7SEG_G (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SE|VFD_7SEG_SG)
#define VFD_7SEG_H (VFD_7SEG_SB|VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SF|VFD_7SEG_SE)
#define VFD_7SEG_I (VFD_7SEG_SB|VFD_7SEG_SE)
#define VFD_7SEG_J (VFD_7SEG_SB|VFD_7SEG_SE|VFD_7SEG_SG|VFD_7SEG_SF)
#define VFD_7SEG_K (VFD_7SEG_SB|VFD_7SEG_SE|VFD_7SEG_SG|VFD_7SEG_SF)
#define VFD_7SEG_L (VFD_7SEG_SC|VFD_7SEG_SF|VFD_7SEG_SG)
#define VFD_7SEG_M (VFD_7SEG_SF|VFD_7SEG_SD|VFD_7SEG_SE)
#define VFD_7SEG_N (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SC|VFD_7SEG_SE|VFD_7SEG_SF)
//#define VFD_7SEG_N (VFD_7SEG_SF|VFD_7SEG_SD|VFD_7SEG_SE)
#define VFD_7SEG_O (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SG|VFD_7SEG_SC|VFD_7SEG_SE|VFD_7SEG_SF)
#define VFD_7SEG_P (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SF)
#define VFD_7SEG_Q (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SF)
#define VFD_7SEG_r (VFD_7SEG_SD|VFD_7SEG_SF)
#define VFD_7SEG_R VFD_7SEG_r
#define VFD_7SEG_S (VFD_7SEG_SA|VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SE|VFD_7SEG_SG)
#define VFD_7SEG_t (VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SF|VFD_7SEG_SG)
#define VFD_7SEG_T VFD_7SEG_t
#define VFD_7SEG_U (VFD_7SEG_SC|VFD_7SEG_SB|VFD_7SEG_SF|VFD_7SEG_SE|VFD_7SEG_SG)
#define VFD_7SEG_V (VFD_7SEG_SC|VFD_7SEG_SB|VFD_7SEG_SF|VFD_7SEG_SE|VFD_7SEG_SG)
#define VFD_7SEG_W (VFD_7SEG_SC|VFD_7SEG_SB|VFD_7SEG_SF|VFD_7SEG_SE|VFD_7SEG_SG)
#define VFD_7SEG_X (VFD_7SEG_SC|VFD_7SEG_SB|VFD_7SEG_SF|VFD_7SEG_SE|VFD_7SEG_SG)
#define VFD_7SEG_Y (VFD_7SEG_SC|VFD_7SEG_SD|VFD_7SEG_SB|VFD_7SEG_SE|VFD_7SEG_SG)
#define VFD_7SEG_Z (VFD_7SEG_SA|VFD_7SEG_SB|VFD_7SEG_SD|VFD_7SEG_SF|VFD_7SEG_SG)
*/
#define SEG_D 0x0001
#define SEG_E 0x0002
#define SEG_C 0x0004
#define SEG_G 0x0008
#define SEG_F 0x0010
#define SEG_B 0x0020
#define SEG_A 0x0040
#define CHAR_A (SEG_F | SEG_E | SEG_A | SEG_B | SEG_C | SEG_G)
#define CHAR_b (SEG_F | SEG_E | SEG_G | SEG_C | SEG_D)
#define CHAR_B CHAR_b
#define CHAR_C (SEG_A | SEG_F | SEG_E | SEG_D)
#define CHAR_d (SEG_G | SEG_E | SEG_D | SEG_B | SEG_C)
#define CHAR_D CHAR_d
#define CHAR_E (SEG_F | SEG_E | SEG_A | SEG_G | SEG_D)
#define CHAR_F (SEG_F | SEG_E | SEG_A | SEG_G)
#define CHAR_g (SEG_A | SEG_F | SEG_G | SEG_B | SEG_C | SEG_D)
#define CHAR_G CHAR_g
#define CHAR_H (SEG_F | SEG_E | SEG_G | SEG_B | SEG_C)
#define CHAR_h (SEG_C | SEG_E | SEG_F | SEG_G)
#define CHAR_I (SEG_F | SEG_E)
#define CHAR_J (SEG_B | SEG_C | SEG_D)
#define CHAR_K (SEG_E | SEG_F | SEG_G)
#define CHAR_L (SEG_F | SEG_E | SEG_D)
#define CHAR_M (SEG_B | SEG_C | SEG_E | SEG_F)
#define CHAR_n (SEG_C | SEG_E | SEG_G)
#define CHAR_N (SEG_A | SEG_B | SEG_C | SEG_E | SEG_F)
#define CHAR_O (SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F)
#define CHAR_o (SEG_C | SEG_D | SEG_E | SEG_G)
#define CHAR_P (SEG_F | SEG_E | SEG_A | SEG_B | SEG_G)
#define CHAR_Q (SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F)
#define CHAR_q (SEG_A | SEG_F | SEG_G | SEG_B | SEG_C)
#define CHAR_r (SEG_E | SEG_F | SEG_G)
#define CHAR_R CHAR_r
#define CHAR_S (SEG_A | SEG_F | SEG_G | SEG_C | SEG_D)
#define CHAR_T (SEG_A)
#define CHAR_t (SEG_D | SEG_E | SEG_F | SEG_G)
#define CHAR_U (SEG_F | SEG_E | SEG_D | SEG_C | SEG_B)
#define CHAR_V (SEG_F | SEG_E)
#define CHAR_W (SEG_B | SEG_C | SEG_E | SEG_F)
#define CHAR_X (SEG_B | SEG_C | SEG_E | SEG_F | SEG_G)
#define CHAR_y (SEG_B | SEG_C | SEG_D | SEG_F | SEG_G)
#define CHAR_Y CHAR_y
#define CHAR_Z (SEG_A | SEG_B | SEG_G | SEG_E | SEG_D)
#define CHAR_PLUS (SEG_G)
#define CHAR_MINUS (SEG_G)
#define CHAR_SPACE 0x00
#define CHAR_UNDSCR (SEG_D)
#define CHAR_0 CHAR_O
#define CHAR_1 (SEG_B | SEG_C)
#define CHAR_2 (SEG_A | SEG_B | SEG_G | SEG_E | SEG_D)
#define CHAR_3 (SEG_A | SEG_B | SEG_G | SEG_C | SEG_D)
#define CHAR_4 (SEG_F | SEG_G | SEG_B | SEG_C)
#define CHAR_5 CHAR_S
#define CHAR_6 (SEG_A | SEG_F | SEG_E | SEG_G | SEG_C | SEG_D)
#define CHAR_7 (SEG_A | SEG_B | SEG_C)
#define CHAR_8 (SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F | SEG_G)
#define CHAR_9 CHAR_g
#define VFD_7SEG_MASK 0xff
#endif /*__FUT_6_BT_269GK1_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -