-
Notifications
You must be signed in to change notification settings - Fork 323
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
ADS1256 SPI analog addon #841
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code checks out on my end. @FeralAI tested enough on hardware that implementation testing is good enough for me.
Nice, I'll do a once over but this is looking clean to me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you @FeralAI !!!
This PR is for a new addon for the ADS1256, a low noise 24-bit 8-channel Analog-to-Digital converter that communicates over SPI. This addon is modeled after the existing ADS1219 addon, so extra features like deadzone config and autocalibration are not present. This work includes:
FLOAT
andDOUBLE
in the Protobuf implementation. The macros needed to support those data types were not present inconfig_utils.cpp
.For the addons page, SPI pulls from the configured peripherals and the addon will not allow configuration if at least one SPI block is not configured, similar to the ADS1219 addon. It will also present a dropdown to select the CS pin using a combination of the selected SPI block's HW CS pin and other available pins.