zero crossing counter is often larger than in the prototype by @troyhacks - due to calculation after filtering (catches more crossings), and due to the fixed condition for detecting zero crossings (doubles the number of crossings). This patch reduces the final value to 2/3, so it typically stays below 256.
146 KiB
146 KiB