Closed knuella closed 3 years ago
I just updated the color function so that it works with COMMON_ANODE, and I also modified the fade function as you indicated, but I kept the principle of checking the values, if it's less than 0 I put 0, if it's greater than 255 I put 255, which will avoid burning the LEDs.
Hi,
on Arduino Nano 33 BLE sense I can not set the onboard RGB-LED with COMMON_ANODE. With some change in the color function it works for me:
I also rewrite your fade function, it seems as it works without the >= / <= stuff: