klipper icon indicating copy to clipboard operation
klipper copied to clipboard

Trying to set different colour LEDs

Open WarriorClub opened this issue 6 years ago • 5 comments

I am trying to set different colour LED's and tried the codes that include "index". For example I tried this command SET_LED LED=my_neopixel BLUE=1.0 Red=1.0 Index=1

But nothing changes. Shouldn't this change the colour of the first LED to magenta?

WarriorClub avatar Oct 16 '20 02:10 WarriorClub

Hi @WarriorClub,

It did not look like there was a Klipper log file attached to this ticket. The log file has been engineered to answer common questions the Klipper developers have about the software and its environment (software version, hardware type, configuration, event timing, and hundreds of other questions).

Unfortunately, too many people have opened tickets without providing the log. That consumes developer time; time that would be better spent enhancing the software. If this ticket references an event that has occurred while running the software then the Klipper log must be attached to this ticket. Otherwise, this ticket will be automatically closed in a few days.

For information on obtaining the Klipper log file see: https://github.com/KevinOConnor/klipper/blob/master/docs/Contact.md

The log can still be attached to this ticket - just add a comment and attach the log to that comment.

Best regards, ~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

klipper-gitissuebot avatar Oct 16 '20 02:10 klipper-gitissuebot

To make the change occur, you have to include the TRANSMIT parameter.

SET_LED LED=my_neopixel BLUE=1.0 Red=1.0 Index=1 TRANSMIT=1

mental405 avatar Oct 16 '20 05:10 mental405

To make the change occur, you have to include the TRANSMIT parameter.

SET_LED LED=my_neopixel BLUE=1.0 Red=1.0 Index=1 TRANSMIT=1

Thank you. I also added the transmit parameter but still no changes.

Here is what I added as the code gcode: SET_LED LED=my_neopixel BLUE=1.0 [INDEX=2] [TRANSMIT=1]

WarriorClub avatar Oct 16 '20 14:10 WarriorClub

To make the change occur, you have to include the TRANSMIT parameter. SET_LED LED=my_neopixel BLUE=1.0 Red=1.0 Index=1 TRANSMIT=1

Thank you. I also added the transmit parameter but still no changes.

Here is what I added as the code gcode: SET_LED LED=my_neopixel BLUE=1.0 [INDEX=2] [TRANSMIT=1]

Do not include square brackets into your code. They here just to designate that parameter is optional.

cab404 avatar Oct 17 '20 04:10 cab404

To make the change occur, you have to include the TRANSMIT parameter. SET_LED LED=my_neopixel BLUE=1.0 Red=1.0 Index=1 TRANSMIT=1

Thank you. I also added the transmit parameter but still no changes. Here is what I added as the code gcode: SET_LED LED=my_neopixel BLUE=1.0 [INDEX=2] [TRANSMIT=1]

Do not include square brackets into your code. They here just to designate that parameter is optional.

Thank you! Both suggestions applied worked. I will close this issue now.

WarriorClub avatar Oct 17 '20 11:10 WarriorClub