addshore
09/23/2025, 4:08 PMfor i := 0; i < 3; i++:
leds[i] = gpio.Pin pins[i] --output=true --value=1
sleep --ms=1000
for i := 0; i < 3; i++:
channels[i] = generator.start leds[i] --duty-factor=1
sleep --ms=1000
sleep --ms=10000
Where we control an RGB LED.
First looping to setup the pins, with value 1 which in this case is LED OFF
We then look through to start the generators, and calling .start seems to cause a small flicker once for each color.
Is there a way to avoid this / a bug that can be fixed?floitsch
09/25/2025, 7:17 AMaddshore
09/25/2025, 8:06 AMfloitsch
09/25/2025, 9:22 AMfloitsch
09/25/2025, 10:56 AMaddshore
09/25/2025, 11:08 AMfloitsch
09/25/2025, 11:09 AMaddshore
09/25/2025, 11:09 AMfloitsch
09/25/2025, 11:10 AMaddshore
09/25/2025, 11:10 AMfloitsch
09/25/2025, 11:10 AMfloitsch
09/25/2025, 11:10 AMfloitsch
09/25/2025, 11:10 AMfloitsch
09/25/2025, 8:29 PMjag flash esp32-pwm-invert. I didn't test it yet, as I didn't want to downgrade my Jaguar.
I see 3 scenarii:
- it doesn't work for you at all (version mismatch or so). In that case I will downgrade and make sure it works.
- it flashes, but doesn't fix your issue. In that case we need to dig deeper. I will probably create repro (with an LED that is inverted...)
- it works and fixes your issue. In that case I will expose the 'invert' flag.addshore
09/25/2025, 8:29 PMaddshore
09/25/2025, 8:29 PMfloitsch
09/25/2025, 8:30 PM