Velxio
Offline Arduino, RP2040 & ESP32 simulator
Starting local backend…
Velxio
HomeDocumentationExamplesEditorAboutPricingFor schoolsBlogGitHubDiscord
Velxio / Examples / ESP32: Analog Joystick
ESP32: Analog Joystick
SensorsbeginnerESP32

ESP32: Analog Joystick

Read X/Y axes and button click from an analog joystick on the ESP32. X on D35, Y on D34, button on GPIO15. The sketch learns the rest position at start-up, so a centred stick reads 0 %.

What you'll simulate

  • ✓Real ESP32 emulation — cycle-accurate, no hardware needed
  • ✓1 interactive component on the canvas
  • ✓Serial Monitor included — see output in real time
← Back to examples