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