Arduino_Vcc icon indicating copy to clipboard operation
Arduino_Vcc copied to clipboard

Add method that directly return the adc value and get average value by digital slide filtering algorithm

Open cheng3100 opened this issue 7 years ago • 1 comments

Hi, I am using your code but I find that the value of vcc is sometime unstable. And sometime I just want the adc int value so that to save performance expenses. So I add a method and put a digital slide fliter inside it. I have test it in my arduino.

cheng3100 avatar Jan 07 '18 08:01 cheng3100

Well, I want to say it that my average method is almostly the same perfermance expense as get the adc value separatly. So I think maybe it is a good improvement :) And the average method also can be apply to the Vcc calculation . I will push it if you merge the PR.

cheng3100 avatar Jan 07 '18 08:01 cheng3100