# RP2040 Rotary Joystick Support
- Rotary control is supported via gamepad or firmware written by [**atrac17**](https://github.com/atrac17) / [**DJ Hard Rich**](https://twitter.com/djhardrich) for [**LS-30 functionality using an RP2040**](). Latency verification done by [**misteraddons**](https://github.com/misteraddons), for more information click [**here**](https://rpubs.com/misteraddons/inputlatency).
Model | Device | Connection | USB Polling
Interval | Sample
Number | Frame
Probability | Average
Latency | Joystick ID |
------|--------|------------|-------------------------|------------------|----------------------|--------------------|-------------|
LS-30 Rotary Encoder | RP2040 | Wired USB | 1ms | 2241 | 95.52% | 0.747 ms | 2e8a:000a |
### Build Instructions
- Download [**Arduino IDE**](https://www.arduino.cc/en/software) for Windows and follow the tutorial below. The set preferences url can be found [**here**](https://github.com/earlephilhower/arduino-pico). For more information, view the [**LS-30 P1 RP2040.ino**](https://github.com/va7deo/SNK68/blob/main/dev/rp2040/LS-30_P1_RP2040/LS-30_P1_RP2040.ino).
| Open File | Select File | Set Preferences | Install RP2040 |
|----|----|----|----|
|
|
|
|
|
| USB Stack | Select Board Type | Verify / Compile | Export Compiled
Binary |
|----|----|----|----|
|
|
|
|
|
### RP2040 to LS-30 Pinout
| RP2040 Pinout | LS-30 Joystick Pinout |
|----|----|
|
|
|
# Licensing
Contact the author for special licensing needs. Otherwise follow the MIT license attached.