That's right. In the rest of the code that you already have, instead of reading state of the button, use encoderFunction for decision if rotary encoder will change brightness or color.
That's right. In the rest of the code that you already have, instead of reading state of the button, use encoderFunction for decision if rotary encoder will change brightness or color.