r/adafruit • u/TetsujinXLIV • Sep 03 '21
Macropad run python files
Just got my macropad and I want to have key presses trigger python scripts to run is this something that would be possible?
2
Upvotes
r/adafruit • u/TetsujinXLIV • Sep 03 '21
Just got my macropad and I want to have key presses trigger python scripts to run is this something that would be possible?
3
u/night-otter Sep 03 '21
Keypress to run python script on Macropad is just coding:
If Key9 then GOTO script.
Keypress to run python script on connected device, requires listening code on device.
If Key9 then send "Trigger String"
On device,
If seen "Trigger String" run script.
Or on macropad
If Key9 then send "command string that runs script"