HAS_SENSOR defines sanitization
This commit is contained in:
parent
40f0036b7a
commit
8452347bf3
@ -1,6 +1,8 @@
|
|||||||
#ifndef _SENSOR_H
|
#ifndef _SENSOR_H
|
||||||
#define _SENSOR_H
|
#define _SENSOR_H
|
||||||
|
|
||||||
|
#define HAS_SENSORS (HAS_SENSOR_1 || HAS_SENSOR_2 || HAS_SENSOR_3)
|
||||||
|
|
||||||
uint8_t sensor_mask(uint8_t sensor_no);
|
uint8_t sensor_mask(uint8_t sensor_no);
|
||||||
uint8_t *sensor_read(uint8_t sensor);
|
uint8_t *sensor_read(uint8_t sensor);
|
||||||
void sensor_init(void);
|
void sensor_init(void);
|
||||||
|
@ -55,8 +55,10 @@
|
|||||||
#define SDS_TX 19 // connect to RX on the SDS011
|
#define SDS_TX 19 // connect to RX on the SDS011
|
||||||
#define SDS_RX 23 // connect to TX on the SDS011
|
#define SDS_RX 23 // connect to TX on the SDS011
|
||||||
|
|
||||||
// user defined sensors
|
// up to three user defined sensors (if connected)
|
||||||
#define HAS_SENSORS 1 // comment out if device has user defined sensors
|
//#define HAS_SENSOR_1 1 // comment out if device has user defined sensor #1
|
||||||
|
//#define HAS_SENSOR_2 1 // comment out if device has user defined sensor #2
|
||||||
|
//#define HAS_SENSOR_3 1 // comment out if device has user defined sensor #3
|
||||||
|
|
||||||
#define CFG_sx1276_radio 1 // select LoRa chip
|
#define CFG_sx1276_radio 1 // select LoRa chip
|
||||||
//#define CFG_sx1272_radio 1 // select LoRa chip
|
//#define CFG_sx1272_radio 1 // select LoRa chip
|
||||||
|
@ -25,9 +25,6 @@
|
|||||||
#define SDCARD_MISO MISO
|
#define SDCARD_MISO MISO
|
||||||
#define SDCARD_SCLK SCK
|
#define SDCARD_SCLK SCK
|
||||||
|
|
||||||
// user defined sensors
|
|
||||||
//#define HAS_SENSORS 1 // comment out if device has user defined sensors
|
|
||||||
|
|
||||||
#define CFG_sx1276_radio 1 // select LoRa chip
|
#define CFG_sx1276_radio 1 // select LoRa chip
|
||||||
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
||||||
|
|
||||||
|
@ -28,9 +28,6 @@
|
|||||||
#define SDCARD_MISO MISO
|
#define SDCARD_MISO MISO
|
||||||
#define SDCARD_SCLK SCK
|
#define SDCARD_SCLK SCK
|
||||||
|
|
||||||
// user defined sensors
|
|
||||||
//#define HAS_SENSORS 1 // comment out if device has user defined sensors
|
|
||||||
|
|
||||||
#define CFG_sx1276_radio 1 // select LoRa chip
|
#define CFG_sx1276_radio 1 // select LoRa chip
|
||||||
#define BOARD_HAS_PSRAM // use if board has external PSRAM
|
#define BOARD_HAS_PSRAM // use if board has external PSRAM
|
||||||
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
||||||
|
@ -20,9 +20,6 @@
|
|||||||
#define HAS_BME680 GPIO_NUM_23, GPIO_NUM_22 // SDA, SCL
|
#define HAS_BME680 GPIO_NUM_23, GPIO_NUM_22 // SDA, SCL
|
||||||
#define BME680_ADDR BME680_I2C_ADDR_PRIMARY // connect SDIO of BME680 to GND
|
#define BME680_ADDR BME680_I2C_ADDR_PRIMARY // connect SDIO of BME680 to GND
|
||||||
|
|
||||||
// user defined sensors
|
|
||||||
//#define HAS_SENSORS 1 // comment out if device has user defined sensors
|
|
||||||
|
|
||||||
#define HAS_LED 13 // ESP32 GPIO12 (pin22) On Board LED
|
#define HAS_LED 13 // ESP32 GPIO12 (pin22) On Board LED
|
||||||
//#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
|
//#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
|
||||||
//#define HAS_RGB_LED SmartLed rgb_led(LED_WS2812, 1, GPIO_NUM_13) // ESP32 GPIO13 (pin13) On Board Shield WS2812B RGB LED
|
//#define HAS_RGB_LED SmartLed rgb_led(LED_WS2812, 1, GPIO_NUM_13) // ESP32 GPIO13 (pin13) On Board Shield WS2812B RGB LED
|
||||||
|
@ -39,9 +39,6 @@
|
|||||||
#define MY_DISPLAY_RST NOT_A_PIN
|
#define MY_DISPLAY_RST NOT_A_PIN
|
||||||
//#define MY_DISPLAY_FLIP 1 // use if display is rotated
|
//#define MY_DISPLAY_FLIP 1 // use if display is rotated
|
||||||
|
|
||||||
// user defined sensors (if connected)
|
|
||||||
//#define HAS_SENSORS 1 // comment out if device has user defined sensors
|
|
||||||
|
|
||||||
//#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
//#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -52,9 +52,6 @@ Reset -> reset device
|
|||||||
//#define HAS_BME680 SDA, SCL
|
//#define HAS_BME680 SDA, SCL
|
||||||
//#define BME680_ADDR BME680_I2C_ADDR_PRIMARY // !! connect SDIO of BME680 to GND !!
|
//#define BME680_ADDR BME680_I2C_ADDR_PRIMARY // !! connect SDIO of BME680 to GND !!
|
||||||
|
|
||||||
// user defined sensors (if connected)
|
|
||||||
//#define HAS_SENSORS 1 // comment out if device has user defined sensors
|
|
||||||
|
|
||||||
//#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
//#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user