Accurate frequency measurement using a Pi Pico RP2040 or Pico2 RP2350 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