📄 includes.h
字号:
#pragma language=extended
#ifndef ENABLE_BIT_DEFINITIONS
#define ENABLE_BIT_DEFINITIONS
// Enable the bit definitions in the iom16.h file
#endif
#include <iom16.h>
#include <ina90.h>
#define UART_BEGIN_STX 0xAA
#define UART_END_STX 0xFF
#define RX_BUFFER_SIZE 6
#define TX_BUFFER_SIZE 10
#define AD_BUF_SIZE 3
#define Gate1 PB4
#define Gate2 PB5
#define Gate3 PB6
#define Gate4 PB7
#define DispClk PC6
#define DispData PC7
#define UART_CHANGE_PWM_EN 0
#define AD_CHANGE_PWM_EN 1
#define COLOR_BLACK 0 /* VT102 Color Codes */
#define COLOR_RED 1
#define COLOR_GREEN 2
#define COLOR_BROWN 3
#define COLOR_BLUE 4
#define COLOR_MAGENTA 5
#define COLOR_CYAN 6
#define COLOR_WHITE 7
typedef unsigned char uchar;
typedef unsigned int uint;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -