Reading Servo PWM Signals on the Arduino & Wiring
We are interested in reading the number of microseconds that a digital pin is set to HIGH. Wiring natively lacks a micros() function to tell us this so we need to write an accurate one.This is the actual implementation of millis() in wiring.c for the
Read more…