seg7.h

来自「STC51系列的源码」· C头文件 代码 · 共 35 行

H
35
字号
/********************************************************************************/
/* filename : SEG7.c                                                            */
/* created  : xillinx                                                           */
/* descript : 本系统采用7端共阳极数码管        __________________________       */
/********************************************************************************/
#ifndef __SEG7_H__
#define __SEG7_H__

/********************************************************************************/
/* 共阴极数码管阵列 */
/********************************************************************************/
extern unsigned char code SEG7_G_segment_table[0x8];    //* 第二片用作选择输出
extern unsigned char code SEG7_G_table[11];
extern unsigned char code SEG7_G_dot_table[11];

/********************************************************************************/
/* 共阳极数码管阵列 */
/********************************************************************************/
extern unsigned char code SEG7_V_segment_table[0x8];    //* 第二片用作选择输出
extern unsigned char code SEG7_V_table[11];
extern unsigned char code SEG7_V_dot_table[11];

/********************************************************************************/
/* 选择合适的数码管类型 */
/********************************************************************************/
#define SEG7_segment_table      SEG7_G_segment_table
#define SEG7_table              SEG7_G_table
#define SEG7_dot_table          SEG7_G_dot_table

extern unsigned char SEG7_buffer[0x8];                  //* 七段数码管的显示缓冲区
void SEG7_printf_ascii(unsigned char * string);
void SEG7_clear_screen(void);

#endif  /* __SEG7_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?