forked from airgradienthq/arduino
New particle count 0.5 and 5.0
This commit is contained in:
@@ -136,6 +136,13 @@ int PMS5003::getPm03ParticleCount(void) {
|
||||
*/
|
||||
int PMS5003::getPm01ParticleCount(void) { return pms.getCount1_0(); }
|
||||
|
||||
/**
|
||||
* @brief Read particle 0.5 count
|
||||
*
|
||||
* @return int particle 0.5 count index
|
||||
*/
|
||||
int PMS5003::getPm05ParticleCount(void) { return pms.getCount0_5(); }
|
||||
|
||||
/**
|
||||
* @brief Read particle 2.5 count
|
||||
*
|
||||
@@ -143,6 +150,13 @@ int PMS5003::getPm01ParticleCount(void) { return pms.getCount1_0(); }
|
||||
*/
|
||||
int PMS5003::getPm25ParticleCount(void) { return pms.getCount2_5(); }
|
||||
|
||||
/**
|
||||
* @brief Read particle 5.0 count
|
||||
*
|
||||
* @return int particle 5.0 count index
|
||||
*/
|
||||
int PMS5003::getPm5ParticleCount(void) { return pms.getCount5_0(); }
|
||||
|
||||
/**
|
||||
* @brief Read particle 10 count
|
||||
*
|
||||
|
||||
@@ -35,8 +35,10 @@ public:
|
||||
int getPm10Sp(void);
|
||||
// Particle count
|
||||
int getPm03ParticleCount(void);
|
||||
int getPm05ParticleCount(void);
|
||||
int getPm01ParticleCount(void);
|
||||
int getPm25ParticleCount(void);
|
||||
int getPm5ParticleCount(void);
|
||||
int getPm10ParticleCount(void);
|
||||
|
||||
int convertPm25ToUsAqi(int pm25);
|
||||
|
||||
@@ -158,6 +158,13 @@ int PMS5003T::getPm03ParticleCount(void) {
|
||||
return pms.getCount0_3();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Read particle 0.5 count
|
||||
*
|
||||
* @return int particle 0.5 count index
|
||||
*/
|
||||
int PMS5003T::getPm05ParticleCount(void) { return pms.getCount0_5(); }
|
||||
|
||||
/**
|
||||
* @brief Read particle 1.0 count
|
||||
*
|
||||
|
||||
@@ -38,6 +38,7 @@ public:
|
||||
int getPm10Sp(void);
|
||||
// Particle count
|
||||
int getPm03ParticleCount(void);
|
||||
int getPm05ParticleCount(void);
|
||||
int getPm01ParticleCount(void);
|
||||
int getPm25ParticleCount(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user