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

More
09 Nov 2021 09:17 #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 or Create an account to join the conversation.

More
10 Nov 2021 04:07 #225916 by cmorley
self.w.LEDNAME.setState(True)

self.w.LEDNAME.setState(False)
The following user(s) said Thank You: ikkuh

Please Log in or Create an account to join the conversation.

More
10 Nov 2021 04:58 #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 or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.059 seconds
Powered by Kunena Forum