MyGit

ricki-z/SDS011

Fork: 53 Star: 81 (更新于 2024-12-20 02:25:28)

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-12-22 08:09:36 LizardByte/Sunshine

2024-12-22 01:52:26 rizonesoft/Notepad3

2024-12-20 06:20:01 ClickHouse/ClickHouse

2024-12-17 13:11:45 cxasm/notepad--

2024-12-16 20:00:54 AaronFeng753/Waifu2x-Extension-GUI

2024-12-16 15:51:57 PCSX2/pcsx2