Request for adding second led to existing hal push button

  • Benb
  • Benb's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 Jun 2025 22:14 #330106 by Benb
Chris is it possible to add a second hal led to the existing hal push button similar to:
 
Thank you
Attachments:

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

More
11 Jun 2025 05:12 #330124 by cmorley
Not easily at the moment.
That particular button uses multiple images for each LED state, Qtvcp draws LEDs on top of the standard button drawing, adding another could easily be added to the code.
Qtvcp could use either technique.

What would control the LEDs? HAL pins ? Toggle state?

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

  • Benb
  • Benb's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
11 Jun 2025 20:22 - 11 Jun 2025 20:23 #330173 by Benb
Hi Chris,
I will use hal pins to control LEDS status. no toggle.

This push button will probably be popular with qtvcp users since it will mimic certain pathpilot buttons. It will also reduce the amount of real state on screens. I can see it used for pause/resume, jog inc/cont ...
Last edit: 11 Jun 2025 20:23 by Benb.

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

More
12 Jun 2025 03:38 #330187 by cmorley
Boring example - but possible:

 
Attachments:

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

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