while(1)
{
if(PressRelease)
{
switch(statetable[0][CurrentState])
{
case WELCOME:
UARTSendArray("please enter three numbers between 0 and 10 to represent the brightness of three modes\n", 88);
pwm(100);
break;
case B1:
pwm((input[0]-48)*100);
break;
case B2:
pwm((input[1]-48)*100);
break;
case B3:
pwm((input[2]-48)*100);
break;
case OFF:
pwm(0);
break;