From 6fad4e2e79632bdc18539b8f910d6679294576b6 Mon Sep 17 00:00:00 2001 From: August Quint <49277349+AugustQu@users.noreply.github.com> Date: Tue, 21 Jan 2020 14:57:36 +0100 Subject: [PATCH] initial --- include/sds011read.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/sds011read.h diff --git a/include/sds011read.h b/include/sds011read.h new file mode 100644 index 00000000..734395a7 --- /dev/null +++ b/include/sds011read.h @@ -0,0 +1,15 @@ +#ifndef _SDS011READ_H +#define _SDS011READ_H + +#include + +// used pins on the ESP-side: +#define ESP_PIN_TX 19 // connect to RX on the SDS011 +#define ESP_PIN_RX 23 // connect to TX on the SDS011 + +#define SDCARD_FILE_HEADER_SDS011 ", PM10,PM25" + +bool sds011_init(); +void sds011_loop(); + +#endif // _SDS011READ_H