config.h 799 B

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