-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add CO2 sensing with SCD4X #4601
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
base: master
Are you sure you want to change the base?
Changes from 17 commits
8fa513f
30532d4
e73ff62
f599984
c9233fe
8a4427a
a28e83c
318da22
8faf466
81f9b38
e34aada
16e2540
a1cbe8e
3cef1e8
ad7647e
7fe9efe
bac816d
726cf86
02a8414
58d916d
ef203b5
cfc355b
1eeadde
80175b1
f0775c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,6 +41,12 @@ ScanI2C::FoundDevice ScanI2C::firstAccelerometer() const | |
| return firstOfOrNONE(8, types); | ||
| } | ||
|
|
||
| ScanI2C::FoundDevice ScanI2C::firstAQI() const | ||
| { | ||
| ScanI2C::DeviceType types[] = {PMSA0031, SCD4X}; | ||
| return firstOfOrNONE(2, types); | ||
| } | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand the intention. The PMSA003I measures the particles and the SCD4x CO2. When connecting both, only the values of the PMSA003I are measured and the SCD4x is ignored. Maybe differ between particles and co2, so that particles and co2 can be measured. Such an approach could be used if for example an SCD30 and SCD4x is connected.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generally meshtastic only supports one sensor per type at a time. |
||
| ScanI2C::FoundDevice ScanI2C::firstRGBLED() const | ||
| { | ||
| ScanI2C::DeviceType types[] = {NCP5623, LP5562}; | ||
|
|
||
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.
Why is this added?