2020-02-08 02:45:35 +03:00
|
|
|
button1 = 1
|
|
|
|
|
buttonSet 2 1
|
|
|
|
|
buttonSet 3 1
|
|
|
|
|
pwmSet 2 1024
|
|
|
|
|
end
|
|
|
|
|
button1 = 0
|
|
|
|
|
buttonSet 2 0
|
|
|
|
|
buttonSet 3 0
|
|
|
|
|
pwmSet 2 0
|
|
|
|
|
end
|
|
|
|
|
analog > digit1
|
|
|
|
|
buttonSet 4 1
|
|
|
|
|
end
|
2020-02-13 21:18:51 +03:00
|
|
|
analog < digit2
|
2020-02-08 02:45:35 +03:00
|
|
|
buttonSet 4 0
|
2020-02-10 01:06:18 +03:00
|
|
|
end
|
|
|
|
|
button5 = 1
|
2020-02-13 21:18:51 +03:00
|
|
|
timerStart 1 digit3 sec
|
2020-02-10 01:06:18 +03:00
|
|
|
end
|
|
|
|
|
timer1 = 0
|
|
|
|
|
buttonSet 6 1
|
|
|
|
|
end
|
2020-02-13 21:18:51 +03:00
|
|
|
timenow = time1
|
|
|
|
|
buttonSet 7 1
|
|
|
|
|
end
|
2020-02-10 01:06:18 +03:00
|
|
|
switch1 = 1
|
2020-03-01 20:41:16 +03:00
|
|
|
textSet 1 обнаружено#движение-time
|
|
|
|
|
push Внимание обнаружено#движение!
|
2020-02-10 01:06:18 +03:00
|
|
|
end
|
2020-03-01 20:41:16 +03:00
|
|
|
button8 = 1
|
|
|
|
|
textSet 1 не#обнаружено-time
|
|
|
|
|
buttonSet 8 0
|
2020-02-08 02:45:35 +03:00
|
|
|
end
|