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

📄 main.h

📁 LV4137显示驱动,自己做的,比较简单,但很实用,MCU用的是Myson MTV512,Keil下编译
💻 H
字号:
//----------------------------------------------------------------------------------------------------
// ID Code      : Main.h No.0000
// Update Note  : 
//
//----------------------------------------------------------------------------------------------------


//--------------------------------------------------
// Definations of Physical Boolean
//--------------------------------------------------
#define _TRUE                           1
#define _FALSE                          0
#define _ON                             1
#define _OFF                            0

//--------------------------------------------------
// Definitions of Bits
//--------------------------------------------------
#define _BIT0                           0x0001
#define _BIT1                           0x0002
#define _BIT2                           0x0004
#define _BIT3                           0x0008


//--------------------------------------------------
// Data Type Redefine
//--------------------------------------------------
typedef unsigned char BYTE;
typedef unsigned int  WORD;
typedef unsigned long DWORD;


#define SEC(x)                          (100 * x)

//----------------------------------------------------------------------------------------------------

#ifdef __MAIN__


//--------------------------------------------------
// Global Variables
//--------------------------------------------------
BYTE data pData[16];


//--------------------------------------------------
// Function Prototypes
//--------------------------------------------------
void NotUseFunc();

#else

//--------------------------------------------------
// Extern Global Variables
//--------------------------------------------------


//--------------------------------------------------
// Extern Function Prototypes
//--------------------------------------------------
extern void NotUseFunc();


#endif


//----------------------------------------------------------------------------------------------------

⌨️ 快捷键说明

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