Reverse pin logic question

I'm trying to run an rgb nozzle light off the endstop port of the ebb36. I'm having trouble figuring out where to put the !. I would think it would be toolboard_t0:!PB6 but that returns an error. Any help would be greatly appreciated!
9 Replies
blacksmithforlife
https://discord.com/channels/582187371529764864/1233461645167169576 rule #2 Please include the logs and config files
loganluckless
loganlucklessOP5mo ago
Right now the nozzle neopixel is commented out and the error is when I uncomment with my listed assumption
miklschmidt
miklschmidt5mo ago
The error is telling you the problem. ! isn't part of the pin name, it's a modifier, it goes before the chip and pin name, ie: !toolboard_t0:PB6.
loganluckless
loganlucklessOP5mo ago
That's what I thought too so when I tried that I got this error
No description
No description
miklschmidt
miklschmidt5mo ago
I think this might be a limitation of the neopixel klipper module. Why are you inverting that pin in the first place, that doesn't make sense.
loganluckless
loganlucklessOP5mo ago
IDK that's how I've always run neo pixels off end stop ports. I'm getting sporadic flashing colors mid print but otherwise no response to a change in color That's with the ! Removed completely
miklschmidt
miklschmidt5mo ago
You've always run with inverted pin logic on the endstop ports? That seems unlikely, i don't think this is new, and the neopixel IC's wouldn't know what to do with the inverted signal. The flashing lights is most likely because those endstop ports aren't made to run neopixels, those ports are implemented in many different ways electrically (depending on the board) and neopixels don't work very well with out a ~330 ohm inline resistor. That's why most boards have dedicated neopixel ports in any case, you may want to try #leds-and-automation since this isn't a RatOS, or even klipper issue for that matter, it's an electronics issue. There are folks over there that know much more about neopixel shenanigans than i do.
loganluckless
loganlucklessOP5mo ago
Alright I'll post over there thanks!
miklschmidt
miklschmidt5mo ago
Furthermore, your endstop ports may be 3.3V, if that's where you're getting the power from, which would also cause flickering.
Want results from more Discord servers?
Add your server