SHTxx driver for (multiple) SHT3x and SHT4x sensors#2042
Open
MaxineMuster wants to merge 8 commits intoopenshwprojects:mainfrom
Open
SHTxx driver for (multiple) SHT3x and SHT4x sensors#2042MaxineMuster wants to merge 8 commits intoopenshwprojects:mainfrom
MaxineMuster wants to merge 8 commits intoopenshwprojects:mainfrom
Conversation
Using extended tokenizer commands allow multiple devices
make own "tokenizer extension"
Fix getting alarm values are three bytes (2 + CRC) Add retry for setting alarm values in case of sensor "NACK"s them
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.
Rewritten driver for SHT3x and SHT4x
Allows multiple sensors
Can auto detect sensor version
Additional SHT3x commands (e.g. alarm which only makes sense, if SHT3x alarm pin is connected to MCU) could be deactivated by not setting
SHTXX_ENABLE_SHT3_EXTENDED_FEATURES
(actually the define is set in header file to compare to old SHT3x driver)
Actually obk_config.h is configured to "replace" all SHT3x drivers to see additional size (1 to 1.5 k)
So it's much smaller than e.g the first try in #1998