/* * This ESP32 code is created by esp32io.com * * This ESP32 code is released in the public domain*/ #define VRX_PIN 26 #define VRY_PIN 25 int valueX = 0; int valueY = 0; void setup() { Serial.begin(9600); } void loop() { valueX = analogRead(VRX_PIN); valueY = analogRead(VRY_PIN); Serial.print("x = "); Serial.print(valueX); Serial.print(", y = "); Serial.println(valueY); delay(100); }