Modify source code to work without requiring main to disable interrupts

A project log for Wind sensor using car reversing kit

A wind speed and direction sensor from an Ebay car reversing kit and an Arduino

kwikiuskwikius 09/30/2021 at 13:580 Comments

Modify source code so that we don't need to disable interrupts. Important since the comparator  is meant to have a lot of positive feedback, which has to be done in software in an interrupt, while only around 6 usec is available to flip the output.