#define PIN_X 32
#define PIN_Y 35
char msg[30];
void setup() {
Serial.begin(9600);
}
void loop() {
uint16_t x = analogRead(PIN_X); // from 0 to 4095
uint16_t y = analogRead(PIN_Y); // from 0 to 4095
// %u unsigned integer
snprintf(msg, 30, "Pot1: %u Pot2: %u", x, y);
Serial.println(msg);
delay(4000); // 4 seconds
}