Skip to content

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