📄 calculator.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -