 You can build a customized pokeball that plays back macros to your switch using a Raspberry Pi Pico and the GP2040CE firmware. Here you can see I've just used the thumbstick to manually spin. Now I'm gonna flip on the switch for the USB cable and as you can see the macro pokeball takes over and it'll spin indefinitely until we turn it off. Now this can be pretty much any button combo you can imagine including things like turbo and precise timings. Check out the learn guide to learn more.