OK now something else is upset.

I have the PWM delay in seconds set by the following code:

Code:
blue_delay_in = fadesetHR[0] * 3600 + fadesetMN[0] * 60 / 255
white_delay_in = fadesetHR[1] * 3600 + fadesetMN[1] * 60 / 255
blue_delay_out = fadeoutHR[0] * 3600 + fadeoutMN[0] * 60 / 255
white_delay_out = fadeoutHR[1] * 3600 + fadeoutMN[1] * 60 / 255
This basically, takes the value for hours (0,1,2 etc) multiplies it by 3600 to convert to seconds, then takes the value for minutes and multiples this by 60 to convert to seconds and then adds them together and divides the result by 255. Having just set the white fad in to zero hours and 5 minutes the PWM should take 1.1 second. OK I know there is no floating point so I would expect some dependency, but it's taken 28 minutes to reach 100% (255), so each step was taking over 5 seconds....Reducing the frequency shortens the delay, a frequency of 100 takes 7 minutes, which allowing for the lack of floating point in PBP would be about right.

I could compensate by increasing the divider from 255 to 700 or something until I get close to the correct timings, but I'm sure there must be a better way