Using the built-in Arduino digitalRead() function instead of referencing the register. Significantly slower, but "should" work on just about every platform.
This also prefixes the preprocessor functions to avoid potential name collisions with headers included before ServoInput.
Using the built-in Arduino
digitalRead()
function instead of referencing the register. Significantly slower, but "should" work on just about every platform.This also prefixes the preprocessor functions to avoid potential name collisions with headers included before ServoInput.