Для тасмоты есть отдельная группа
Ошибка
Soft WDT reset
Exception (4):
epc1=0x40106ab6 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
>>>stack>>>
ctx: cont
sp: 3ffffcd0 end: 3fffffd0 offset: 0160
3ffffe30: 3ffee90c 00000002 00000040 4020357f
3ffffe40: 3ffee90c 3ffee718 00000002 40203634
3ffffe50: 00000001 00000027 0000001c 3fffff00
3ffffe60: 3ffee669 00000031 3ffee710 3fffff00
3ffffe70: 3ffee6e8 00000061 3ffee710 40201cec
3ffffe80: 3ffee6e8 00000061 3ffee6e8 40201de6
3ffffe90: 3ffee6e8 00000002 3ffffefd 40201efb
3ffffea0: 60000314 3ffee90c 00000001 40205bfc
3ffffeb0: fffffffc 00000001 3ffee90c 40203431
3ffffec0: 40205bc8 3ffffefb 3ffee6e8 3ffee6e8
3ffffed0: 00000002 3ffffefb 0000000a 40202398
3ffffee0: 60000314 3ffee90c 00000001 3ffee719
3ffffef0: 60000314 00000001 32fee90c 31343636
3fffff00: 3ffee900 3ffee719 00000002 40203659
3fffff10: 00000009 00000027 00000009 00000001
3fffff20: 3ffee6b8 00000080 3ffee710 0000000a
3fffff30: 3ffee6e8 00000000 00006811 402023e4
3fffff40: 3ffee5e0 000000b0 3ffee6e8 3ffee5bc
3fffff50: 3ffee5e0 3ffee5c0 3ffee6e8 402014b3
3fffff60: 00000000 00000080 00000000 40205bfc
3fffff70: 3ffee5ac 3ffee5b0 3ffee710 40201cec
3fffff80: 40205bc8 3ffe8875 3ffee6e8 3ffee8c4
3fffff90: 3ffee5d0 3ffee5d4 3ffee5b8 402017e3
3fffffa0: 3fffdad0 00000000 3ffee898 3ffee8c4
код
#include <Keypad.h>
//#include <LiquidCrystal.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); //0x27 is the i2c address, while 16 = columns, and 2 = rows.
#include<stdio.h>
const int ROW_NUM = 4; //four rows
const int COLUMN_NUM = 4; //four columns
char key_layout[ROW_NUM][COLUMN_NUM] = {
{'1','2','3', 'A'},
{'4','5','6', 'B'},
{'7','8','9', 'C'},
{'*','0','#', 'D'}
};
byte pin_rows[ROW_NUM] = {D0, D1, D2, D3}; // The ESP8266 pins connect to the row pins
byte pin_column[COLUMN_NUM] = {D4, D5, D6, D7}; // The ESP8266 pins connect to the column pins
Keypad keypad = Keypad( makeKeymap(key_layout), pin_rows, pin_column, ROW_NUM, COLUMN_NUM );
int relay = 13;
int counter = 0;
int attempts = 0;
int max_attempts = 3;
String mymints;
int minutes = 0;
String mysecs;
int seconds = 0;
long int total_seconds = 0;
int secflag = 0;
int timer_started_flag = 0;
// Tracks the time since last event fired
unsigned long previousMillis=0;
unsigned long int previoussecs = 0;
unsigned long int currentsecs = 0;
unsigned long currentMillis = 0;
int interval= 1 ; // updated every 1 second
int tsecs = 0;
void setup(){
Serial.begin(9600);
lcd.init(); //Init the LCD
lcd.backlight(); //Activate backlight
pinMode(relay, OUTPUT);
digitalWrite(relay, LOW);
Serial.println("enter password");
lcd.print("Hethashvark");
delay(2000);
lcd.clear();
lcd.print("Jamank - rope:");
}
void loop()
{
keypadfunction();
}
void keypadfunction()
{
char key = keypad.getKey();
if (key){
Serial.println(key);
counter = counter + 1;
lcd.setCursor(counter, 1);
lcd.print(key);
}
if (key == '1')
{
mymints = mymints + 1;
}
if (key == '2')
{
mymints = mymints + 2;
}
if (key == '3')
{
mymints = mymints + 3;
}
if (key == '4')
{
mymints = mymints + 4;
}
if (key == '5')
{
mymints = mymints + 5;
}
if (key == '6')
{
mymints = mymints + 6;
}
if (key == '7')
{
mymints = mymints + 7;
}
if (key == '8')
{
mymints = mymints + 8;
}
if (key == '9')
{
mymints = mymints + 9;
}
if (key == '0')
{
mymints = mymints + 0;
}
if (key == '#')
{
counter = 0;
mymints = "";
minutes = 0;
mysecs = "";
seconds = 0;
secflag = 0;