#include <MD_MAX72xx.h>
#define MAX_DEVICES 2
#define VERT_PIN A0
#define HORZ_PIN A1
#define SEL_PIN 2
void setup() {
pinMode(VERT_PIN, INPUT);
pinMode(HORZ_PIN, INPUT);
pinMode(SEL_PIN, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
int y = analogRead(VERT_PIN);
int x = analogRead(HORZ_PIN);
bool selPressed = digitalRead(SEL_PIN) == LOW;
Serial.println(x);
Serial.println(y);
delay(500);
}