Programme to make the Touch LED blink


I have a Touch LED in my robot and I want it to blink.
I am programming in Pyhton and I made the Touch LED to be BLUE when the program is running and when the actions are executed it turns to BLUE-VIOLET. I’ll leave a screenshot of the end of my program to show you.


I want the Touch LED to be blinking BLUE VIOLET while the actions are being performed but I cannot find a way to do this. Does anyone know if this is possible and how to achieve it?

Thank you!! :smiling_face:

What does execActions do?

I have teams put the color LED in the block / function they are calling. So if there was a claw move function, the LED color becomes yellow and when the routine ends it turns the LED off.

Let us go through some basic troubleshooting actions, what is it doing? What is it supposed to be doing? Do we have any errors? Now that we have found out all of that, it’s time to do some brainstorming, how can we go about doing these things? List all of the options you can think of, then think, what would be the best way to do this, and what ways can we not use because of other code constraints?

Try going through some of these questions and tell me what the results are, if you can list the steps you took to get there and link your code, you can post it in between ``` it will format it for you!


1 Like

One simple way, use the set_blink function


shh im trying to get them to think through it

1 Like


Is it a function for the Touch LED in IQ VEXCode? Because I can’t find it…

yes, it doesn’t show in the drawer or autocomplete, but it’s a valid function.
(many of the more advanced functions do not show)

touchled_12.set_blink( Color.RED, 0.5, 0.5 )

I’ll ask, is the full API set documented somewhere?


It worked, thank you!!
How do you know the advenced functions? Where can I find them?