ricki-z/SDS011
Fork: 54 Star: 81 (更新于 2024-09-06 15:20:13)
license: GPL-3.0
Language: C++ .
Arduino library for SDS011 dust sensor
最后发布版本: 0.0.5 ( 2017-03-28 06:54:35)
SDS011
Arduino library for dust Sensor SDS011 (Nova Fitness Co.,Ltd)
This library uses SoftSerial or HardwareSerial to connect to the SDS011.
Usage
-
Define SDS object: i.e.
SDS011 mySDS;
-
Start object:
void begin(pinRX,pinTX);
i.e.mySDS.begin(pinRX,pinTX);
-
Read values:
int read(float *p25, float *p10);
i.e.error = mySDS(&pm25,&pm10);
Reads the PM2.5 and PM10 values, return code is 0, if new values were read, and 1 if there were no new values.
Alternative with HardwareSerial
- SDS object can also be initialized with a Serial object as parameter
i.e.
SDS011 mySDS;
mySDS.begin(Serial1);
HardwareSerial objects need to be defined if using ESP32
最近版本更新:(数据更新于 2024-09-07 03:54:46)
2017-03-28 06:54:35 0.0.5
2017-03-27 07:42:09 0.0.4
2016-04-21 06:25:54 0.0.1
ricki-z/SDS011同语言 C++最近更新仓库
2024-10-06 10:35:10 carbon-language/carbon-lang
2024-10-06 08:22:35 PCSX2/pcsx2
2024-10-05 18:06:37 ExpressLRS/ExpressLRS
2024-10-05 09:47:43 LizardByte/Sunshine
2024-10-04 21:48:34 ocornut/imgui
2024-10-03 14:59:18 MaaAssistantArknights/MaaAssistantArknights