Custom input scripts

Background: Hi, new here and don’t really have any experience coding with the rp2040, I purchased a waveshare rp2040 zero board because of its small size and flashed it with the single-pico firmware, and it works perfectly (I was expecting some issues because of some posts here about waveshare boards).

My actual question:

I would like to use a rotary input for x and y and simulate a mouse with two rollers. after looking for rotary encoders I realized that a small dc motor might be a more economical option, but it would require manual tuning and would pass the remapper a voltage instead of real input to remap. Is it possible to do this on the existing config or would I have to edit the firmware?

You might be able to implement rotary encoder input using expressions.

You’d be getting the state of the GPIO pins 1000 times per second, whether that’s fast enough depends on your particular encoder and how fast you spin it.