#define VE 25
#define HO 26
#define SEL 27
#define RL 19
void setup() {
pinMode(SEL, INPUT);
pinMode(RL, OUTPUT);
Serial.begin(115200);
}
void loop() {
unsigned int VVE = analogRead(VE);
unsigned int VHO = analogRead(HO);
bool VSEL = digitalRead(SEL);
char ch[50];
sprintf(ch,"Ver = %d,Hor = %d,Sel => ",VVE,VHO);
Serial.print(ch);
Serial.println(VSEL);
if(VSEL == 1) digitalWrite(RL,1);
else digitalWrite(RL,0);
}