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;
}