Change LEDs direction on raspberry gateway
Hello everyone, I created my own hardware but I have small problem. LEDs on my PCB are connected reverse. Anode to RPI gpio, option in configuration --my-leds-blinking-inverse it's prbalby to inverse tx and rx, I would like to blink LED with H_Lev on Pin
Hi @vidin and welcome to the forum!
--my-leds-blinking-inverse it's prbalby to inverse tx and rx
No, it inverses the LED state, so on becomes off and vice versa, for the TX, RX and Error LEDs.
As a reference, the inversion is done in the code: https://github.com/mysensors/MySensors/blob/development/core/MyLeds.h#L24
Default LED wiring is described here: https://www.mysensors.org/build/advanced_gateway
Quote: Each LED is connected by its anode (long leg) to +5V. The cathode (short leg) is connected through a resistor to one of the following digital pins of the Arduino
So in your case where the anodes are connected to GPIO and cathode to GND, setting --my-leds-blinking-inverse should just work fine.
I use direct between raspberry and nrf24l01+, LED's blinking only with serial gateway?