Minimal ESP-IDF 6 SimpleRadio controller for two two-axis joysticks and two
buttons. It sends the SR-Controller CONTROL packet every 20 ms.
The two joysticks use the Jaculus ESP32-S3 deck mapping: stick 1 X/Y is GPIO
7/9, stick 2 X/Y is GPIO 6/8, and their push buttons are GPIO 10/11. The
robot address is currently fixed at 2.
The connected Jaculus SSD1306 OLED uses I2C address 0x3C on SDA GPIO 14 and
SCL GPIO 13. It shows the four axis positions and button state.
The serial log prints the four raw ADC values. Copy each axis's observed
minimum, center, and maximum into kAxisConfig; set inverted to true for
an axis that moves in the wrong direction.
idf.py set-target esp32s3
idf.py build flash monitor