greenbright += 1; if (greenbright > 5) greenbright = 0; if (inactive == 0) alarm[1] = 15; if (inactive == 1) greenbright = 0;