Hi there, for interfacing raison i need to invert the output state of the

gplus
(Pierre JEANNE) #1

Hi there, for interfacing raison i need to invert the output state of the library the logic “0” must become “1” and logic “1” must become “0”. i am using Fastled 3.2 lib on an arduino uno with WS2812B leds strip. Does anybody know in which files of the lib i can invert the output ? thanks

(Daniel Garcia) #2

The asm code for ws2812 output is in platforms/avr/clockless_trinket.h - but it might be a bit tricky to change — but why do you need to invert the output - and would a hardware solution be better?