⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 display.h

📁 时钟芯片ds1302 程序 源程序按版本号放在文件夹中。里面有在Protues中仿真的DSN文件。 打开MPLAB的MCP文件进行编译 将DSN文件载入Protues中 将生成的HEX导入到P
💻 H
字号:
/***********************************
*  Company :  HSLCN
* 
*  Filename:  display.h
*  Summary :  A declaration File
* 
*  Version :  1.0
*  Author :   lxyppc
*  CreateDate:2007-1-15
* 
*  Copyright (C) 2007 : lxyppc
*  All rights reserved.
************************************/
#ifndef	DISPLAY_H
#define	DISPLAY_H
#include <pic.h>
//define PORTB as the BCDOutPort
//and only use the low 4 bit
#define BCDOutPort    &PORTB
//define PORTA as the Scan control port
//and only use the low 4 bit
#define ScanControl   &PORTA

// 7 Segment display Com Anode
void    Seg7DisplayCA(char*);
// 7 Segment display Com Cathode
void    Seg7DisplayCC(char*);
//BCD display Com Anode
void    BCDDisplayCA(char*);
//BCD display Com Cathhode
void    BCDDisplayCC(char*);
//simple delay
void    SDelay(char);
//define display device mode
//Because this device use CC LED,
//so define the CC display as the primry display mode
#define     BCDDisplay  BCDDisplayCC
#define     Seg7Display  Seg7DisplayCC
#endif

⌨️ 快捷键说明

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