I recently got a few digisparks I used in a project recently and I kinda wanna add a button to one to replay a few commands when I push it kinda like a macro key. Is there any way to make it so when I just push the button that it either reset the code already on the digispark or to execute it the moment I push the button. I saw a great tutorial on how to add a rotary encoder and control the volume on the computer like wouldn't it just be the same steps but with a button and a lil less code.
This is the specific one I am using now I don't have a soldering kit at the moment so no need to respond right away but any help is appreciated even if I don't get to actually adding one for awhile.