Clears volatile changed flag in the available() function if the ISR-triggered pulse is deemed to be invalid. This prevents re-evaluating bad pulses multiple times.
Re-enable the interrupt pin check (static assert). Adds a define (SERVOINPUT_ENABLE_PCINT) for overriding it in case the user wants to use pin change interrupts.
Adds a getBoolean() function for checking whether the pulse is in the upper or lower part of its range. Useful for reading servos controlled by buttons or triggering motors / LEDs.
Continuing development with some generic changes:
changed
flag in theavailable()
function if the ISR-triggered pulse is deemed to be invalid. This prevents re-evaluating bad pulses multiple times.SERVOINPUT_ENABLE_PCINT
) for overriding it in case the user wants to use pin change interrupts.getBoolean()
function for checking whether the pulse is in the upper or lower part of its range. Useful for reading servos controlled by buttons or triggering motors / LEDs.