Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

59 lines (45 sloc) 2.03 KB
/*
Copyright (C) AC SOFTWARE SP. Z O.O.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef IMPULSE_COUNTER_H_
#define IMPULSE_COUNTER_H_
#define IMPULSE_COUNTER_COUNT 3
#define SAVE_INTERVAL 5000
#define CFG_TIME_VARIABLES
#define IMPULSE_PORT1 13 // (NodeMCU D7)
#define IMPULSE_PORT2 12 // (NodeMCU D6)
#define IMPULSE_PORT3 5 // (NodeMCU D1)
#define LED_RED_PORT 14 // (NodeMCU D5)
#define REF_LED_PORT1 4 // (NodeMCU D2)
#define REF_LED_PORT2 15 // (NodeMCU D8)
#define REF_LED_PORT3 16 // (NodeMCU D0)
#define B_CFG_PORT 0 // (NodeMCU flash btn)
#define IMPULSE_TRIGGER_VALUE 0
#define ESP8266_SUPLA_PROTO_VERSION 10
#define BOARD_ON_CONNECT
#define BOARD_ON_CFG_SAVED
#define BOARD_CFG_HTML_TEMPLATE
#define BOARD_ESP_STARTING supla_esp_board_starting();
char *ICACHE_FLASH_ATTR supla_esp_board_cfg_html_template(
char dev_name[25], const char mac[6], const char data_saved);
#define BOARD_INTR_HANDLER \
if (supla_esp_board_intr_handler(gpio_status)) return
void supla_esp_board_send_channel_values_with_delay(void *srpc);
void ICACHE_FLASH_ATTR supla_esp_board_starting(void);
uint8 ICACHE_FLASH_ATTR supla_esp_board_get_impulse_counter(
unsigned char channel_number, TDS_ImpulseCounter_Value *icv);
uint8 supla_esp_board_intr_handler(uint32 gpio_status);
void ICACHE_FLASH_ATTR supla_esp_board_on_connect(void);
void ICACHE_FLASH_ATTR supla_esp_board_on_cfg_saved(void);
#endif
You can’t perform that action at this time.