Enhance channel cycling functions and add missing PGA settings - #28
Open
RainerMinixhofer wants to merge 4 commits into
Open
Enhance channel cycling functions and add missing PGA settings#28RainerMinixhofer wants to merge 4 commits into
RainerMinixhofer wants to merge 4 commits into
Conversation
- Created ADS1256_new.h and ADS1256_old.cpp to implement a new version of the ADS1256 library. - Introduced methods for configuring the ADC, including setting data rate, PGA, and GPIO. - Added functionality for single-ended and differential input cycling. - Implemented voltage conversion from raw ADC data. - Enhanced initialization and command handling for the ADS1256 chip. - Included detailed comments and documentation for better understanding and usage.
…eps different from 1
… CS_LOW/CS_HIGH methods for better pin handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhanced cycleSingle() function: Modified to accept a custom list of single-ended channels (muxList and muxCount parameters) for flexible and continuous cycling through specified channels. Defaults to all single-ended channels if no list is provided.
Improved cycleDifferential() function: Added a stepwidth parameter to allow customizable stepping through differential channels (e.g., stepwidth=2 cycles AIN0+AIN1, AIN4+AIN5, etc.).
Added missing PGA settings: Included definitions for PGA_32 and PGA_64 in the header file.