Here is an example of what would happen if you did not restate ur pwm's
NOT DECLARING
if (rc_dig_in01 == 0)
{
pwm01 = 0;
}
(pwm01 would stay at the value 0 when button is pressed. Once its unpressed, the value will stay at 0.)
DECLARING
if (rc_dig_in01 == 0)
{
pwm01 = 0;
}
(When button is pressed value will be 0. When it is unpressed, the value will be 127
