07-30-2012 10:18 AM
Hi Gzimmer,
you have to take into account your loop rate of 10 iterations per second when asking for 100 samples at samplerate of 1kS/s...
Your counting loop surely can be made easier. I only made a first step to show the usage of booleans...
07-30-2012 10:22 AM
Thank you! Admittedly since I found these snippets online, most of my trouble stemmed from unfamiliarity with shift registers and a few other functions I never used. This has been a great learning experience! Kudos for everyone!