12345678910111213141516171819202122232425262728293031 |
- #ifndef __CONFIG_H__
- #define __CONFIG_H__
- #include "driver/gpio.h"
- #define SW_VERSION "1.0"
- #define PULSES_PER_KWH 1000
- // These defines configures which code to generate (to save download time during development)
- #define CCFG_GEN_PULSE // For testing purposes only (LED-Pulse 14Hz)
- #define CCFG_PCNT // pcnt-code that counts pulses
- #define WIFI_ENABLED
- #define MQTT_ENABLED
- #define SERIAL_ENABLED
- #define ENABLE_SSD1306
- // Pulse
- #define PCNT_INPUT_SIG_IO GPIO_NUM_23 // Pulse Input GPIO
- #define LEDC_OUTPUT_IO GPIO_NUM_22 // Output GPIO of a sample 1 Hz pulse generator
- // I2C OLED Disp
- #define I2C_SDA_PIN GPIO_NUM_5
- #define I2C_CLK_PIN GPIO_NUM_4
- // UART
- #define UART_TX_PIN GPIO_NUM_17
- #define UART_RX_PIN GPIO_NUM_16
- #endif
|