THIS CODE IS OBSOLETE * It needs to be updated to be compatible with changes to the ESP32 standard libraries. Also, if fine granularity control is required, it needs to use long int arithmetic instead ...