-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.h
17 lines (14 loc) · 953 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* ----------------- General config -------------------------------- */
/* Particulate Matter Sensor */
uint32_t g_pms_warmup_period = 30; // Seconds to warm up PMS before reading
uint32_t g_pms_report_period = 120; // Seconds between reports
char sensor[8] = "PMS7003";
#define VERSION "0.3.2"
/* Serial */
#define SERIAL_BAUD_RATE 115200 // Speed for USB serial console
/* ----------------- Hardware-specific config ---------------------- */
#define ESP_WAKEUP_PIN D0 // To reset ESP8266 after deep sleep
#define ESP_FACTORY_RESET D7 // To factory reset ESP8266
#define PMS_RX_PIN D4 // Rx from PMS (== PMS Tx)
#define PMS_TX_PIN D2 // Tx to PMS (== PMS Rx)
#define PMS_BAUD_RATE 9600 // PMS5003 uses 9600bps