julianschill / klipper-led_effect

LED effects plugin for klipper
GNU General Public License v3.0
645 stars 117 forks source link

Control of multiple Pins not working #157

Closed Boztech3D closed 9 months ago

Boztech3D commented 10 months ago

I don't know how to word this so I will just post a sample. The first part works.

[neopixel sb_leds] pin: PA8 #was PB0

The pin connected to the neopixel. This parameter must be provided.

chain_count: 3

The number of Neopixel chips that are "daisy chained" to the

provided pin. The default is 1 (which indicates only a single

Neopixel is connected to the pin).

color_order: GRB

Set the pixel order required by the LED hardware. Options are GRB,

RGB, GRBW, or RGBW. The default is GRB.

initial_RED: 1.0 initial_GREEN: 0.0 initial_BLUE: 1.0

initial_WHITE: 0.0

Sets the initial LED color of the Neopixel. Each value should be

between 0.0 and 1.0. The WHITE option is only available on RGBW

LEDs. The default for each color is 0.

This part does NOT work. [neopixel top_bar] pin: PC13 chain_count: 15 color_order: GRB initial_RED: 1.0 initial_GREEN: 0.0 initial_BLUE: 1.0

I have added this as well. [led_effect sb_logo_busy] autostart: false frame_rate: 24 leds: neopixel:sb_leds (1) neopixel:top_bar layers: breathing 3 1 top (1,0,0) The Stealthburner lights seem to work. But the Top Bar only gets 3 out of 15 leds. Seems to mimic the Stealthburner lights. What am I doing wrong?

julianschill commented 10 months ago

This should work. First make sure the LEDs work with normal SET_LED commands. Stop all effects with STOP_LED_EFFECTS and run SET_LED LED=top_bar RED=1 Make sure they all light up red. Also enclose your code with backticks ` or format them as code.

Boztech3D commented 10 months ago

Yes. When I stop led effects and issue red for the top bar it works fine. Not sure what changed. But now I have no control over the nozzle LEDs. They stay on blue. I don't understand back tics or what you meant.

On Mon, Aug 14, 2023, 5:20 AM Julian Schill @.***> wrote:

This should work. First make sure the LEDs work with normal SET_LED commands. Stop all effects with STOP_LED_EFFECTS and run SET_LED LED=top_bar RED=1 Make sure they all light up red. Also enclose your code with backticks ` or format them as code.

— Reply to this email directly, view it on GitHub https://github.com/julianschill/klipper-led_effect/issues/157#issuecomment-1677138380, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBN6TBIVFOEIQOZAJQ5L3XLXVICWNANCNFSM6AAAAAA3PO5NJA . You are receiving this because you authored the thread.Message ID: @.***>

julianschill commented 10 months ago

Please read this (especially the Troubleshooting section): https://docs.vorondesign.com/community/howto/drachenkatze/neopixel_guide.html

And this for how to format the texts here, that they don't show up as yours did: https://docs.github.com/de/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks

I don't think it is a software issue with the plugin, because I have defined LEDs on multiple pins and this works for me.

Please also upload a klippy.log, so I can check for errors.

Boztech3D commented 10 months ago

I think I got it figured out. Took me awhile to figure it out the macros and the different effects. Very nice!!! And one of my nozzle LEDs must be bad. I was watching the rainbow effect and it doesn't light up blue. So thanks for your time and explanations.

On Mon, Aug 14, 2023, 7:01 AM Julian Schill @.***> wrote:

Please read this (especially the Troubleshooting section): https://docs.vorondesign.com/community/howto/drachenkatze/neopixel_guide.html

And this for how to format the texts here, that they don't show up as yours did: https://docs.github.com/de/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks

I don't think it is a software issue with the plugin, because I have defined LEDs on multiple pins and this works for me.

Please also upload a klippy.log, so I can check for errors.

— Reply to this email directly, view it on GitHub https://github.com/julianschill/klipper-led_effect/issues/157#issuecomment-1677272619, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBN6TBPCXU5IIU5B766J4ELXVIORFANCNFSM6AAAAAA3PO5NJA . You are receiving this because you authored the thread.Message ID: @.***>

Boztech3D commented 10 months ago

I thought I had solved the problem. I replaced the second nozzle LED because when I turn on nozzle LEDs it turns green. Here is the nozzle code I am using. [led_effect set_nozzle_leds] leds: neopixel:sb_leds (2,3)

neopixel:caselight

autostart: false frame_rate: 24 layers: static 0 0 top (1.0, 1.0, 1.0)

So I am stump by why this is happening.

julianschill commented 10 months ago

Make sure you defined the correct color order.

Boztech3D commented 10 months ago

Ok. So I was about to try a whole new set of LEDs in the Stealthburner head. But then the idea just popped into my head. The stupid things are RGBW! All of my others are GRB. WOW! Well at least everything is working like it should. Hopefully someone else will read this and try RGBW. ;)