How to use Python program to control the on and off of LED lights
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.
10 Nov 2021 04:07 #225916
by cmorley
Replied by cmorley on topic How to use Python program to control the on and off of LED lights
self.w.LEDNAME.setState(True)
self.w.LEDNAME.setState(False)
self.w.LEDNAME.setState(False)
The following user(s) said Thank You: ikkuh
Please Log in or Create an account to join the conversation.
10 Nov 2021 04:58 #225921
by yi2580
Replied by yi2580 on topic How to use Python program to control the on and off of LED lights
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