#include
#include
//模拟IO口和数字IO口的定义
#define PIN_UNDEFINED 255
#define PIN_A_VOLTAGE 5 //电池电压传感器
#define PIN_A_MQX 4 //气体传感器,MQ2,MQ135
#define PIN_D_SERVO_V 9
#define PIN_D_SERVO_H PIN_UNDEFINED
#define PIN_D_SERVO_L 5 //PIN_UNDEFINED
#define PIN_D_SERVO_R 6 //PIN_UNDEFINED
#define PIN_D_DHT 8//PIN_UNDEFINED //DHT11温湿度传感器
#define PIN_D_RELAY PIN_UNDEFINED //一路继电器
#define PIN_D_RED PIN_UNDEFINED //红外人体感应传感器
#define PIN_D_LEDA PIN_UNDEFINED //LED指示灯A
#define PIN_D_LEDB PIN_UNDEFINED //LED指示灯B
//PT2272 Recv,D0->D3用模拟IO口实现,因为Arduino UNO的数字IO口不够用
#define PIN_D_2272VT 4
#define PIN_A_2272D0 0
#define PIN_A_2272D1 1
#define PIN_A_2272D2 2
#define PIN_A_2272D3 3
//315M、433M RF Send,控制智能开关、智能插座、电动窗帘
#define PIN_D_315SEND 7//PIN_UNDEFINED
#define PIN_D_433SEND PIN_UNDEFINED
//左中右三个方向的壁障传感器pin定义
#define PIN_D_BIZ_C PIN_UNDEFINED
#define PIN_D_BIZ_L PIN_UNDEFINED
#define PIN_D_BIZ_R PIN_UNDEFINED
//L298N电机驱动板的控制pin
//舵机用了9号PWM,L298N用10,11号PWM的话,会导致10号PWM失效!!!
//motor A
#define dir1PinA 2
#define dir2PinA 10
#define speedPinA 3
//motor B
#define dir1PinB 12
#define dir2PinB 13
#define speedPinB 11