Go to the documentation of this file. 45 #include "lib/sensors.h" 47 #ifndef PM10_SENSOR_H_ 48 #define PM10_SENSOR_H_ 50 #define PM10_ERROR (-1) 51 #define PM10_SUCCESS 0 52 #define PM10_SENSOR "PM10 Sensor" 53 #define PM10_SENSOR_PULSE_DELAY 280 54 #define PM10_EXTERNAL_VREF 5000 55 #define PM10_EXTERNAL_VREF_CROSSVAL 3000 57 #ifdef PM10_SENSOR_CONF_CTRL_PIN 58 #define PM10_SENSOR_CTRL_PIN PM10_SENSOR_CONF_CTRL_PIN 60 #define PM10_SENSOR_CTRL_PIN 7 62 #ifdef PM10_SENSOR_CONF_CTRL_PORT 63 #define PM10_SENSOR_CTRL_PORT PM10_SENSOR_CONF_CTRL_PORT 65 #define PM10_SENSOR_CTRL_PORT GPIO_A_NUM 68 extern const struct sensors_sensor pm10;