📄 h_io.h
字号:
//==================================================硬件层
//光耦定义
#define HardL_J1 PIN_A0
#define HardL_J2 PIN_A1
#define HardL_J3 PIN_A2
#define HardL_J4 PIN_A3
#define HardL_J5 PIN_A5
#define HardL_J6 PIN_A4
#define HardL_J7 PIN_C7
#define HardL_J8 PIN_B3
//LCD定义
#define HardL_LCD_4 PIN_C6
#define HardL_LCD_5 PIN_C1
#define HardL_LCD_6 PIN_C2
#define HardL_LCD_7 PIN_C3
#define HardL_LCD_9 PIN_C4
#define HardL_LCD_11 PIN_C5
#define HardL_LCD_12 PIN_D0
#define HardL_LCD_13 PIN_D1
#define HardL_LCD_14 PIN_D2
#define HardL_LCD_15 PIN_D3
#define HardL_LCD_16 PIN_D4
#define HardL_LCD_17 PIN_D5
#define HardL_LCD_18 PIN_D6
#define HardL_LCD_19 PIN_D7
//J16
#define HardL_J16_1 PIN_B0
#define HardL_J16_2 PIN_B1
#define HardL_J16_3 PIN_B2
#define HardL_J16_4 PIN_B5
#define HardL_J16_5 PIN_B4
//继电器U11-Q1
#define HardL_U11 PIN_E0
#define HardL_U12 PIN_E1
//===================================================软件定义
//启动按键
#define Key HardL_LCD_15
//前左右传感器(光耦)right_Top
#define SRed_Head HardL_J5
#define SRed_Right_T HardL_J2
#define SRed_Left_T HardL_J3
//接近传感器
#define SNear HardL_J4
//左右底盘(对管)
//#define SRed_Left_B HardL_J16_1
//#define SRed_Right_B HardL_J16_2
#define SRed_B_Left HardL_J7
#define SRed_B_Right HardL_J8
//电磁铁
#define EEorn HardL_U11
//蜂鸣器
#define EBeep HardL_U12
//电机控制
//左侧
#define ELeft_M0 HardL_J16_1
#define ELeft_M1 HardL_J16_2
//右侧
#define ERight_M0 HardL_J16_3
#define ERight_M1 HardL_J16_4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -