After looking into code to make a custom keyboard, I wanted to see if I could convert a button press of an adaptive switch, to keyboard presses and mouse movements. This would be a very cheap way of creating powerful and customizable assistive devices for people.
I used Circuit Python for this project along with Adafruit's HID library. The 3.5mm jack is soldered to a pin on the Pico where the Python picks up the button presses and runs specific functions including, clearing and typing into the search bar, clicking on first item after search (playlist), opening video in full screen, going to next video, and pause/play.
The script also adds the video to the watched later playlist after the user stays on the video for a preset amount of time. This would hopefully build a playlist of videos the user found interesting.
This project taught me much about coding, finding solutions, and just how versatile Python can be even for an absolute beginner. There was one more iteration where I added buttons with pictures to search for different things. This worked well in the code and when the button was pressed. The person I built it for did not like using that function.
I plan on 3D modeling a case and printing a handful to donate to the community program I helped create. I want to publish the code on GitHub and make it easily customizable depending on who's using it and their needs.