2020-01-21 14:57:36 +01:00
|
|
|
#ifndef _SDS011READ_H
|
|
|
|
#define _SDS011READ_H
|
|
|
|
|
2022-02-14 17:32:46 +01:00
|
|
|
#include <SdsDustSensor.h>
|
2020-03-29 18:08:52 +02:00
|
|
|
#include "globals.h"
|
2020-01-21 14:57:36 +01:00
|
|
|
|
|
|
|
#define SDCARD_FILE_HEADER_SDS011 ", PM10,PM25"
|
|
|
|
|
2022-02-16 00:47:17 +01:00
|
|
|
// use original pins from HardwareSerial if none defined
|
|
|
|
#ifndef SDS_TX
|
|
|
|
#define SDS_TX -1
|
|
|
|
#endif
|
|
|
|
#ifndef SDS_RX
|
|
|
|
#define SDS_RX -1
|
|
|
|
#endif
|
|
|
|
|
2022-02-14 17:32:46 +01:00
|
|
|
extern bool isSDS011Active;
|
|
|
|
|
2020-01-21 14:57:36 +01:00
|
|
|
bool sds011_init();
|
|
|
|
void sds011_loop();
|
2020-02-03 15:24:49 +01:00
|
|
|
void sds011_sleep(void);
|
|
|
|
void sds011_wakeup(void);
|
2020-02-25 22:18:20 +01:00
|
|
|
void sds011_store(sdsStatus_t *sds_store);
|
2020-01-21 14:57:36 +01:00
|
|
|
#endif // _SDS011READ_H
|