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.
For #16 and maybe #18. Add support for multiple sensors. Sort of a hack, but tested and works. Basic idea is to add new class members for
i2c_dev
andspi_dev
and then dynamically set them to the global ones for each read method.Do not have BMP390 to test.
Multiple SPI Test
Multiple I2C Test
Both work and print out expected results. Can breathe on second sensor and see its temp value rise.
![Screenshot from 2021-06-18 12-36-24](https://user-images.githubusercontent.com/8755041/122609877-8f3d4980-d033-11eb-8aaf-0626cc1c2619.png)