#define PIN_HORZ A0
#define PIN_VERT A1
#define PIN_SEL 2
int valueHorz = 0;
int valueVert = 0;
int valueSel = 0;
void setup() {
// put your setup code here, to run once:
pinMode(PIN_SEL, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
valueHorz = analogRead(PIN_HORZ);
Serial.print("HORZ: ");
Serial.println(valueHorz);
valueVert = analogRead(PIN_VERT);
Serial.print("VERT: ");
Serial.println(valueVert);
valueSel = digitalRead(PIN_SEL);
Serial.print("SEL: ");
Serial.println(valueSel);
delay(1000);
}