📄 print.h
字号:
#ifndef PRINT_H
#define PRINT_H
#include <reg51.h>
#include "elseFiles\func.h"
//为了防止出现 WARNING UNCALLED
#define PRINT_USE
#define PRINT_STR //print_Str 为Dec和Hex提供支持
#define PRINT_CHAR
// #define PRINT_DEC
#define PRINT_HEX
#ifdef PRINT_USE
extern unsigned char uRxUART; //串口接受的数据
void print_init(void);
void print_Str(const char*p);
#ifdef PRINT_CHAR
void print_Char(unsigned char c);
#endif
#ifdef PRINT_DEC
void print_Dec(unsigned char n,unsigned char flag); //n:需要转换的数 flag:回车标志符
#endif
#ifdef PRINT_HEX
void print_Hex(unsigned char n,unsigned char flag);
#endif
#endif //PRINT_USE
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -