|
11 | 11 | // generic.h is kitchensink with all available options |
12 | 12 |
|
13 | 13 | #define HAS_LORA 1 // comment out if device shall not send data via LoRa or has no LoRa |
14 | | -#define HAS_SPI 1 // comment out if device shall not send data via SPI |
| 14 | +//#define HAS_SPI 1 // comment out if device shall not send data via SPI |
15 | 15 | // pin definitions for SPI slave interface |
16 | | -#define SPI_MOSI GPIO_NUM_23 |
17 | | -#define SPI_MISO GPIO_NUM_19 |
18 | | -#define SPI_SCLK GPIO_NUM_18 |
19 | | -#define SPI_CS GPIO_NUM_5 |
| 16 | +//#define SPI_MOSI GPIO_NUM_23 |
| 17 | +//#define SPI_MISO GPIO_NUM_19 |
| 18 | +//#define SPI_SCLK GPIO_NUM_18 |
| 19 | +//#define SPI_CS GPIO_NUM_5 |
20 | 20 |
|
21 | 21 | // enable only if you want to store a local paxcount table on the device |
22 | 22 | #define HAS_SDCARD 1 // this board has an SD-card-reader/writer |
|
35 | 35 | // for loading necessary libraries |
36 | 36 |
|
37 | 37 | // BME680 sensor on I2C bus |
38 | | -#define HAS_BME 1 // Enable BME sensors in general |
39 | | -#define HAS_BME680 GPIO_NUM_21, GPIO_NUM_22 // SDA, SCL |
40 | | -#define BME680_ADDR BME68X_I2C_ADDR_LOW // connect SDIO of BME680 to GND |
| 38 | +//#define HAS_BME 1 // Enable BME sensors in general |
| 39 | +//#define HAS_BME680 GPIO_NUM_21, GPIO_NUM_22 // SDA, SCL |
| 40 | +//#define BME680_ADDR BME68X_I2C_ADDR_LOW // connect SDIO of BME680 to GND |
41 | 41 |
|
42 | 42 | // BME280 sensor on I2C bus |
43 | 43 | //#define HAS_BME 1 // Enable BME sensors in general |
|
49 | 49 | //#define BMP180_ADDR 0x77 |
50 | 50 |
|
51 | 51 | // SDS011 dust sensor settings |
52 | | -#define HAS_SDS011 1 // use SDS011 |
| 52 | +//#define HAS_SDS011 1 // use SDS011 |
53 | 53 | // used pins on the ESP-side: |
54 | | -#define SDS_TX 19 // connect to RX on the SDS011 |
55 | | -#define SDS_RX 23 // connect to TX on the SDS011 |
| 54 | +//#define SDS_TX 19 // connect to RX on the SDS011 |
| 55 | +//#define SDS_RX 23 // connect to TX on the SDS011 |
56 | 56 |
|
57 | 57 | // up to three user defined sensors (if connected) |
58 | 58 | //#define HAS_SENSOR_1 1 // comment out if device has user defined sensor #1 |
|
64 | 64 | //#define BOARD_HAS_PSRAM // use if board has external SPIRAM, note: this will reduce IRAM0 by 64KB for SPIRAM cache |
65 | 65 | #define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature |
66 | 66 |
|
67 | | -#define HAS_DISPLAY 1 |
| 67 | +//#define HAS_DISPLAY 1 |
68 | 68 | //#define MY_DISPLAY_FLIP 1 // use if display is rotated |
69 | 69 | #define BAT_MEASURE_ADC ADC1_GPIO35_CHANNEL // battery probe GPIO pin -> ADC1_CHANNEL_7 |
70 | 70 | #define BAT_VOLTAGE_DIVIDER 2 // voltage divider 100k/100k on board |
71 | 71 |
|
72 | 72 | #define HAS_LED (21) // on board LED |
73 | 73 | #define HAS_BUTTON (39) // on board button |
74 | | -#define RGB_LED_COUNT 1 // we have 1 LED |
75 | | -#define HAS_RGB_LED FastLED.addLeds<WS2812, GPIO_NUM_0, GRB>(leds, RGB_LED_COUNT); |
| 74 | +//#define RGB_LED_COUNT 1 // we have 1 LED |
| 75 | +//#define HAS_RGB_LED FastLED.addLeds<WS2812, GPIO_NUM_0, GRB>(leds, RGB_LED_COUNT); |
76 | 76 |
|
77 | 77 | // GPS settings |
78 | | -#define HAS_GPS 1 // use on board GPS |
79 | | -#define GPS_SERIAL 9600, SERIAL_8N1, GPIO_NUM_12, GPIO_NUM_15 // UBlox NEO 6M RX, TX |
80 | | -#define GPS_INT GPIO_NUM_13 // 30ns accurary timepulse, to be external wired on pcb: NEO 6M Pin#3 -> GPIO13 |
| 78 | +//#define HAS_GPS 1 // use on board GPS |
| 79 | +//#define GPS_SERIAL 9600, SERIAL_8N1, GPIO_NUM_12, GPIO_NUM_15 // UBlox NEO 6M RX, TX |
| 80 | +//#define GPS_INT GPIO_NUM_13 // 30ns accurary timepulse, to be external wired on pcb: NEO 6M Pin#3 -> GPIO13 |
81 | 81 |
|
82 | 82 | // Pins for I2C interface of OLED Display |
83 | | -#define MY_DISPLAY_SDA (4) |
84 | | -#define MY_DISPLAY_SCL (15) |
85 | | -#define MY_DISPLAY_RST (16) |
| 83 | +//#define MY_DISPLAY_SDA (4) |
| 84 | +//#define MY_DISPLAY_SCL (15) |
| 85 | +//#define MY_DISPLAY_RST (16) |
86 | 86 |
|
87 | 87 | // Settings for on board DS3231 RTC chip |
88 | | -#define HAS_RTC MY_DISPLAY_SDA, MY_DISPLAY_SCL // SDA, SCL |
89 | | -#define RTC_INT GPIO_NUM_34 // timepulse with accuracy +/- 2*e-6 [microseconds] = 0,1728sec / day |
| 88 | +//#define HAS_RTC MY_DISPLAY_SDA, MY_DISPLAY_SCL // SDA, SCL |
| 89 | +//#define RTC_INT GPIO_NUM_34 // timepulse with accuracy +/- 2*e-6 [microseconds] = 0,1728sec / day |
90 | 90 |
|
91 | 91 | // Settings for IF482 interface |
92 | 92 | //#define HAS_IF482 9600, SERIAL_7E1, GPIO_NUM_12, GPIO_NUM_14 // IF482 serial port parameters |
|
0 commit comments