int sw1 = 2;
int sw2 = 4;
int vr_pin = A0;
int hor_pin = A2;
int ver_pin = A1;
int sel_pin = A3;
void setup() {
Serial.begin(9600);
pinMode(sw1, INPUT);
pinMode(sw2, INPUT);
pinMode(vr_pin, INPUT);
pinMode(hor_pin, INPUT);
pinMode(ver_pin, INPUT);
pinMode(sel_pin, INPUT);
}
void loop() {
int data = digitalRead(sw1);
int data_2 = digitalRead(sw2);
int data_3 = analogRead(vr_pin);
int hori_data = analogRead(hor_pin);
int vert_data = analogRead(ver_pin);
int sel_data = analogRead(sel_pin);
Serial.print("Switch : 1 =");
Serial.print(data);
Serial.print(" | Switch : 2 =");
Serial.print(data_2);
Serial.print(" | VR = ");
Serial.print(data_3);
Serial.print(" | Horizon :");
Serial.print(hori_data);
Serial.print(" | Vertical :");
Serial.print(vert_data);
Serial.print(" | Select :");
Serial.println(sel_data);
delay(350);
}