I want it to keep hs as a whole number.. i.e, for hours 0, 1 and 2, hs should be 1.. then for hours 3,4,5 hs will be 2. If this will work the same way i will change that.

The two things im really worried about are the pause command and the hpwm.

Will that set the pwm output on a specific port (do i have to define the port) to make my led's appear brighter/dimmer?

Thanks again,

Tim.