See https://iosoft.blog/picofreq for a detailed description of the C code, and https://iosoft.blog/picofreq_python for the MicroPython version.
Copyright (c) Jeremy P Bentham 2024