generic.h: shrink features due to IRAM shortage
This commit is contained in:
parent
487197656e
commit
bed593ff0b
@ -11,12 +11,12 @@
|
|||||||
// generic.h is kitchensink with all available options
|
// generic.h is kitchensink with all available options
|
||||||
|
|
||||||
#define HAS_LORA 1 // comment out if device shall not send data via LoRa or has no LoRa
|
#define HAS_LORA 1 // comment out if device shall not send data via LoRa or has no LoRa
|
||||||
#define HAS_SPI 1 // comment out if device shall not send data via SPI
|
//#define HAS_SPI 1 // comment out if device shall not send data via SPI
|
||||||
// pin definitions for SPI slave interface
|
// pin definitions for SPI slave interface
|
||||||
#define SPI_MOSI GPIO_NUM_23
|
//#define SPI_MOSI GPIO_NUM_23
|
||||||
#define SPI_MISO GPIO_NUM_19
|
//#define SPI_MISO GPIO_NUM_19
|
||||||
#define SPI_SCLK GPIO_NUM_18
|
//#define SPI_SCLK GPIO_NUM_18
|
||||||
#define SPI_CS GPIO_NUM_5
|
//#define SPI_CS GPIO_NUM_5
|
||||||
|
|
||||||
// enable only if you want to store a local paxcount table on the device
|
// enable only if you want to store a local paxcount table on the device
|
||||||
#define HAS_SDCARD 1 // this board has an SD-card-reader/writer
|
#define HAS_SDCARD 1 // this board has an SD-card-reader/writer
|
||||||
@ -35,9 +35,9 @@
|
|||||||
// for loading necessary libraries
|
// for loading necessary libraries
|
||||||
|
|
||||||
// BME680 sensor on I2C bus
|
// BME680 sensor on I2C bus
|
||||||
#define HAS_BME 1 // Enable BME sensors in general
|
//#define HAS_BME 1 // Enable BME sensors in general
|
||||||
#define HAS_BME680 GPIO_NUM_21, GPIO_NUM_22 // SDA, SCL
|
//#define HAS_BME680 GPIO_NUM_21, GPIO_NUM_22 // SDA, SCL
|
||||||
#define BME680_ADDR BME68X_I2C_ADDR_LOW // connect SDIO of BME680 to GND
|
//#define BME680_ADDR BME68X_I2C_ADDR_LOW // connect SDIO of BME680 to GND
|
||||||
|
|
||||||
// BME280 sensor on I2C bus
|
// BME280 sensor on I2C bus
|
||||||
//#define HAS_BME 1 // Enable BME sensors in general
|
//#define HAS_BME 1 // Enable BME sensors in general
|
||||||
@ -49,10 +49,10 @@
|
|||||||
//#define BMP180_ADDR 0x77
|
//#define BMP180_ADDR 0x77
|
||||||
|
|
||||||
// SDS011 dust sensor settings
|
// SDS011 dust sensor settings
|
||||||
#define HAS_SDS011 1 // use SDS011
|
//#define HAS_SDS011 1 // use SDS011
|
||||||
// used pins on the ESP-side:
|
// used pins on the ESP-side:
|
||||||
#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
|
||||||
|
|
||||||
// up to three user defined sensors (if connected)
|
// up to three user defined sensors (if connected)
|
||||||
//#define HAS_SENSOR_1 1 // comment out if device has user defined sensor #1
|
//#define HAS_SENSOR_1 1 // comment out if device has user defined sensor #1
|
||||||
@ -64,29 +64,29 @@
|
|||||||
//#define BOARD_HAS_PSRAM // use if board has external SPIRAM, note: this will reduce IRAM0 by 64KB for SPIRAM cache
|
//#define BOARD_HAS_PSRAM // use if board has external SPIRAM, note: this will reduce IRAM0 by 64KB for SPIRAM cache
|
||||||
#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
|
||||||
|
|
||||||
#define HAS_DISPLAY 1
|
//#define HAS_DISPLAY 1
|
||||||
//#define MY_DISPLAY_FLIP 1 // use if display is rotated
|
//#define MY_DISPLAY_FLIP 1 // use if display is rotated
|
||||||
#define BAT_MEASURE_ADC ADC1_GPIO35_CHANNEL // battery probe GPIO pin -> ADC1_CHANNEL_7
|
#define BAT_MEASURE_ADC ADC1_GPIO35_CHANNEL // battery probe GPIO pin -> ADC1_CHANNEL_7
|
||||||
#define BAT_VOLTAGE_DIVIDER 2 // voltage divider 100k/100k on board
|
#define BAT_VOLTAGE_DIVIDER 2 // voltage divider 100k/100k on board
|
||||||
|
|
||||||
#define HAS_LED (21) // on board LED
|
#define HAS_LED (21) // on board LED
|
||||||
#define HAS_BUTTON (39) // on board button
|
#define HAS_BUTTON (39) // on board button
|
||||||
#define RGB_LED_COUNT 1 // we have 1 LED
|
//#define RGB_LED_COUNT 1 // we have 1 LED
|
||||||
#define HAS_RGB_LED FastLED.addLeds<WS2812, GPIO_NUM_0, GRB>(leds, RGB_LED_COUNT);
|
//#define HAS_RGB_LED FastLED.addLeds<WS2812, GPIO_NUM_0, GRB>(leds, RGB_LED_COUNT);
|
||||||
|
|
||||||
// GPS settings
|
// GPS settings
|
||||||
#define HAS_GPS 1 // use on board GPS
|
//#define HAS_GPS 1 // use on board GPS
|
||||||
#define GPS_SERIAL 9600, SERIAL_8N1, GPIO_NUM_12, GPIO_NUM_15 // UBlox NEO 6M RX, TX
|
//#define GPS_SERIAL 9600, SERIAL_8N1, GPIO_NUM_12, GPIO_NUM_15 // UBlox NEO 6M RX, TX
|
||||||
#define GPS_INT GPIO_NUM_13 // 30ns accurary timepulse, to be external wired on pcb: NEO 6M Pin#3 -> GPIO13
|
//#define GPS_INT GPIO_NUM_13 // 30ns accurary timepulse, to be external wired on pcb: NEO 6M Pin#3 -> GPIO13
|
||||||
|
|
||||||
// Pins for I2C interface of OLED Display
|
// Pins for I2C interface of OLED Display
|
||||||
#define MY_DISPLAY_SDA (4)
|
//#define MY_DISPLAY_SDA (4)
|
||||||
#define MY_DISPLAY_SCL (15)
|
//#define MY_DISPLAY_SCL (15)
|
||||||
#define MY_DISPLAY_RST (16)
|
//#define MY_DISPLAY_RST (16)
|
||||||
|
|
||||||
// Settings for on board DS3231 RTC chip
|
// Settings for on board DS3231 RTC chip
|
||||||
#define HAS_RTC MY_DISPLAY_SDA, MY_DISPLAY_SCL // SDA, SCL
|
//#define HAS_RTC MY_DISPLAY_SDA, MY_DISPLAY_SCL // SDA, SCL
|
||||||
#define RTC_INT GPIO_NUM_34 // timepulse with accuracy +/- 2*e-6 [microseconds] = 0,1728sec / day
|
//#define RTC_INT GPIO_NUM_34 // timepulse with accuracy +/- 2*e-6 [microseconds] = 0,1728sec / day
|
||||||
|
|
||||||
// Settings for IF482 interface
|
// Settings for IF482 interface
|
||||||
//#define HAS_IF482 9600, SERIAL_7E1, GPIO_NUM_12, GPIO_NUM_14 // IF482 serial port parameters
|
//#define HAS_IF482 9600, SERIAL_7E1, GPIO_NUM_12, GPIO_NUM_14 // IF482 serial port parameters
|
||||||
|
Loading…
Reference in New Issue
Block a user