calculator.h

来自「ARM44B0 做的计算器源程序」· C头文件 代码 · 共 49 行

H
49
字号


#ifndef	__CALCULATOR_H__
#define	__CALCULATOR_H__


/*=========================================================================*/

extern	const	unsigned char	gImage_Calculator_ICO[];
extern	const	unsigned char	gImage_Calculator_Small_ICO[];

extern	struct	GUI_MENU	GUI_ICO_Menu_Calculator;

/*=========================================================================*/

#define		Cal_Add_Key_Pressed()		(Uart_Key=='+')
#define		Cal_Sub_Key_Pressed()		(Uart_Key=='-')
#define		Cal_Mul_Key_Pressed()		(Uart_Key=='*')
#define		Cal_Div_Key_Pressed()		(Uart_Key=='/')
#define		Cal_Enter_Key_Pressed()		(Uart_Key=='=')
#define		Cal_CE_Key_Pressed()		(Uart_Key=='C')
#define		Cal_Exit_Key_Pressed()		(Uart_Key==Uart_Key_ESC)
#define		Cal_Backspace_Key_Pressed()	(Uart_Key=='\b')
#define		Cal_Num_Key_Pressed()		((Uart_Key>='0') && (Uart_Key<='9'))




/*=========================================================================*/
//函数声明.

void	Calculator(void);

/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/
/*=========================================================================*/

#endif

⌨️ 快捷键说明

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