config.h 704 B

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