config.h 779 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __CONFIG_H__
  2. #define __CONFIG_H__
  3. #include "driver/gpio.h"
  4. #define PULSES_PER_KWH 1000
  5. // These defines configures which code to generate (to save download time during development)
  6. //#define CCFG_GEN_PULSE // For testing purposes only (LED-Pulse 14Hz)
  7. //#define CCFG_PCNT // pcnt-code that counts pulses
  8. //#define WIFI_ENABLED
  9. //#define MQTT_ENABLED
  10. #define SERIAL_ENABLED
  11. #define ENABLE_SSD1306
  12. // Pulse
  13. #define PCNT_INPUT_SIG_IO GPIO_NUM_6 // Pulse Input GPIO
  14. #define LEDC_OUTPUT_IO GPIO_NUM_7 // Output GPIO of a sample 1 Hz pulse generator
  15. // I2C OLED Disp
  16. #define I2C_SDA_PIN GPIO_NUM_5
  17. #define I2C_CLK_PIN GPIO_NUM_4
  18. // UART
  19. #define UART_TX_PIN GPIO_NUM_17
  20. #define UART_RX_PIN GPIO_NUM_16
  21. #endif