in the attached project I try to adjust the brightness of the onboard LED with a Rotary Encoder
Question 1: If I enable line 27 ("LED_BLUE_Write(0u);") by the removing the comment signs the rest of the code does not work as I aspect. Turning the Rotary Encoder has no effect! Why is this so? (with the line disabled it works as I aspect!)
Question 2: What do I have to change that the code from line 47 to 69 is executed in an interrupt routine, where the interrupt routine is initiated every time the Rotary Encoder is operated?