Pololu Robotics & Electronics
Menu
My account Comments or questions? About Pololu Contact Ordering information Distributors

Pololu Forum

Make LED blink with Autohotkey

Hi everyone, Newbie question here. I’ve read the example on the Pololu Autokey support page about turning a LED on and OFF on port 0:

^!c:: Run usccmd --servo 0,8000,,Hide ^!b:: Run usccmd --servo 0,0,Hide

How would I be able to make a LED blink once by just using one key. Let’s say CTRL and 1 keys make the LED turn on then off at a certain speed. ^1:: speed of 200m/s?
Thanks

I found this little script which works:
^1::
RunWait usccmd --servo 0,8000,,Hide Sleep 200 RunWait usccmd --servo 0,0,Hide
return

1 Like