Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added commands for averaging #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

uChip
Copy link

@uChip uChip commented Oct 9, 2013

My very first pull request. Go easy on me. ;-)

This change adds four new command calls that allow switching voltage and current measurements between single-sample and 128-sample averaging.

  • void setAmpInstant(void); // returns to single sampling
  • void setAmpAverage(void); // changes config reg to 128-sample averaging
  • void setVoltInstant(void); // returns to single sampling
  • void setVoltAverage(void); // changes config reg to 128-sample averaging

I've tested these with my local project and found them to work correctly.

I also couldn't resist tweaking the README just a bit to make it more descriptive.

Thanks,
Chip

uChip added 2 commits October 7, 2013 16:58
Four commands allow switching V and A measurements between single-sample
and 128-sample averaging.
Modified averaging commands to add longer delay for first sample.
Also tweaked README a bit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant