config.h 544 B

1234567891011121314
  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 PCNT_INPUT_SIG_IO 4 // Pulse Input GPIO
  9. #define PCNT_INPUT_CTRL_IO 5 // Control GPIO HIGH=count up, LOW=count down
  10. #define LEDC_OUTPUT_IO 18 // Output GPIO of a sample 1 Hz pulse generator