I'm trying to use a timer do dim the RGB Led. I have configured the timer TU1, but the function Setoffsetticks() doesn't work.I know the counter is working because if I change the offset parameter in the initial configuration, the LED becomes more or less bright. 
Could someone please help me?