Using readMicroSeconds() function from the Servo.h library with attiny85

Hello every one,

like the title says I'd like rean a PWM signal from a receiver to an attiny85 but I'm having trouble doing that sins the standard arduino servo lib doesn't support the functions in that lib for attiny85

Any proper way to read PWM signal with that IC?

Here is the function from the lib:

int Servo::readMicroseconds()
{
    unsigned int pulsewidth;

    if (this->servoIndex != INVALID_SERVO) {
        pulsewidth = ticksToUs(servos[this->servoIndex].ticks)  + TRIM_DURATION;
    } else {
        pulsewidth  = 0;
    }

    return pulsewidth;
}

The read method in the Servo library simply returns the last value written to it.

Are you saying you want to read an R/C receiver’s output?

AWOL:
The read method in the Servo library simply returns the last value written to it.

Are you saying you want to read an R/C receiver's output?

Yes exactly.

Also what's this "tick" function?

Ticks are the noises made by a clock. The Servo library uses one of the built-in timers as a clock. Individual ticks on that clock are some specific number of microseconds long.

Does the standard Arduino pulseIn() function work on the Tiny?

MorganS:
Ticks are the noises made by a clock. The Servo library uses one of the built-in timers as a clock. Individual ticks on that clock are some specific number of microseconds long.

Does the standard Arduino pulseIn() function work on the Tiny?

Yes is does compile.