How to use Python program to control the on and off of LED lights

More
4 years 11 months ago #225794 by yi2580
Hello, I want to use Python code to control the LED on and off in qtvcp. How can I write Python code to control it? For example, after I press a button, the LED will light up. I hope someone can help me. Thank you

Please Log in to join the conversation.

More
4 years 11 months ago #225916 by cmorley
self.w.LEDNAME.setState(True)

self.w.LEDNAME.setState(False)

Please Log in to join the conversation.

More
4 years 11 months ago #225921 by yi2580
OK, thank you very much for your reply. I just tried it. It's true. You've been very helpful. Thank you again

Please Log in to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum