Ok, here is the issue, I want to only send the data to the uLCD only when there is a change of state. IE when the light first comes on, not the whole time the light is on, and only when the light turns off.
LIGHTS:
select case totalmin
case 360 to 1143
pwmout c.1, 252, blueout
serout...