MyGit

ricki-z/SDS011

Fork: 53 Star: 81 (更新于 2024-11-01 05:30:16)

license: GPL-3.0

Language: C++ .

Arduino library for SDS011 dust sensor

最后发布版本: 0.0.5 ( 2017-03-28 06:54:35)

GitHub网址

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-11-14 19:53:29 dragonflylee/switchfin

2024-11-12 22:32:53 PCSX2/pcsx2

2024-11-11 01:07:39 mudler/LocalAI

2024-11-10 05:02:57 LizardByte/Sunshine

2024-11-08 16:52:36 ExpressLRS/ExpressLRS

2024-11-08 05:48:17 ClickHouse/ClickHouse