How to change the sample rate?
luizmanke opened this issue · comments
Hi @luizmanke!
I'm glad to hear you've been using this module!
As far as we've discovered the sample rate cannot be changed and is set at 100k samples per second.
The setting in the nRF Connect App appears to be averaging in a window for prettier data display.
We've implemented something similar here:
ppk2-api-python/power_profiler.py
Lines 119 to 126 in ab39f6b
As @NejcKle said, you cannot change the actual sample rate from the hardware, just do software averaging.
Closing this issue as there is nothing to fix.