Skip to content

Enhance channel cycling functions and add missing PGA settings - #28

Open
RainerMinixhofer wants to merge 4 commits into
CuriousScientist0:mainfrom
RainerMinixhofer:my-modifications
Open

Enhance channel cycling functions and add missing PGA settings#28
RainerMinixhofer wants to merge 4 commits into
CuriousScientist0:mainfrom
RainerMinixhofer:my-modifications

Conversation

@RainerMinixhofer

Copy link
Copy Markdown

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.

- 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.
… CS_LOW/CS_HIGH methods for better pin handling
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