assert( power >= 0 && power <= MAX_POWER );counter += power;pwmOutput = counter >= MAX_POWER;if( pwmOutput ) counter -= MAX_POWER;