use sparkfun lib for sensors adafruit has issues
This commit is contained in:
33
config.h
33
config.h
@@ -16,9 +16,6 @@
|
||||
#define g_pms_warmup_period 30 // Seconds to warm up PMS before reading
|
||||
#define g_pms_report_period 120 // Seconds between reports
|
||||
|
||||
/* Use WiFi. If this is off, MQTT won't run */
|
||||
#define ENABLE_WIFI true
|
||||
|
||||
/* Serial */
|
||||
#define SERIAL_BAUD_RATE 115200 // Speed for USB serial console
|
||||
|
||||
@@ -27,19 +24,25 @@
|
||||
|
||||
/* ----------------- Hardware-specific Config ---------------------- */
|
||||
/* Mode button connection (momentary between this pin and GND) */
|
||||
#define MODE_BUTTON_PIN 0
|
||||
#define TFT_BL 4 // LED back-light control pin
|
||||
#define TFT_BACKLIGHT_ON HIGH // Level to turn ON back-light (HIGH or LOW)
|
||||
#define TFT_BL_PWMCHANNEL 1
|
||||
#define TFT_BL_FREQ 5000
|
||||
#define TFT_BL_BITS 8
|
||||
#define MODE_BUTTON_PIN 0
|
||||
#define BUTTON_CENTER 37
|
||||
#define BUTTON_RIGHT 39
|
||||
#define BUTTON_LEFT 38
|
||||
#define I2C_SDA_PIN 21
|
||||
#define I2C_SCL_PIN 22
|
||||
#define I2C_2_SCL 13
|
||||
#define I2C_2_SDA 14
|
||||
#define PMS_RX_PIN 19 // Tx to the PMS SHOULD BE 16
|
||||
#define PMS_TX_PIN 26 // Rx from the PMS SHOULD BE 17
|
||||
#define TFT_BL 4 // LED back-light control pin
|
||||
|
||||
/* I2C */
|
||||
#define I2C_SDA_PIN 21
|
||||
#define I2C_SCL_PIN 22
|
||||
//#define BME680_I2C_ADDR 0x76
|
||||
|
||||
//backlight defines
|
||||
#define TFT_BACKLIGHT_ON HIGH // Level to turn ON back-light (HIGH or LOW)
|
||||
#define TFT_BL_PWMCHANNEL 1
|
||||
#define TFT_BL_FREQ 5000
|
||||
#define TFT_BL_BITS 8
|
||||
|
||||
/* Particulate Matter Sensor */
|
||||
#define PMS_BAUD_RATE 9600
|
||||
#define PMS_RX_PIN 19 // Tx to the PMS SHOULD BE 16
|
||||
#define PMS_TX_PIN 26 // Rx from the PMS SHOULD BE 17
|
||||
|
||||
|
||||
Reference in New Issue
Block a user