//遙控
#include <IRremote.h>
//LCD1602
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);//0x27 0x3F
//舵機
#include <Servo.h>
Servo myservo;
Servo myservo2;
const int irReceiverPin =7;//遙控引腳
const int relayPin =3;//繼電器引腳
int tu=0;//模式
int JL=0;//距離
int JL2=0;//模式2距離
unsigned int JL3;//模式3距離
int jiaodu=0;//角度
int jiaodu2=0;//模式2角度
int jiaodu3=0;//模式三角度
int zh=0;//模式2切換
int pin =4;//激光
int jishi;
int jiaodu4=0;
int JL4=0;
int jiaodu5=0;
unsigned long duration;//模式三激光探測距離