Asystent AI
Problem z Timerem
 
Powiadomienia
Wyczyść wszystko

ESP32 Problem z Timerem

2 Wpisów
1 Użytkownicy
0 Reactions
1,753 Wyświetleń
(@moto-binek)
Wpisów: 3
Bywalec
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
[#4994]

Witam wszystkich.

Mam problem z TimerSet, choć wydaje mi się że wcześniej działało to bez problemu ale przestało, albo coś namieszałem.

problem taki że lampy nie gasną, celowo jest teraz 3sek bo walcze z tym już dłuższą chwile.

Prosił bym o zerknięcie na moje wypociny (jestem w tym całkowicie zielony jeśli chodzi o SW)

On [IN1#State]=0 do //Lampy
MCPGPIO,9,1 //start
TimerSet,2,3 //timer 1
endon

 

On [IN1#State]=1 do
TimerSet,2,0 //timer 1 set to halt, used to stop before the timer ends!
MCPGPIO,9,0 //stop
MCPGPIO,1,1 //set gpio
endon

On Rules#Timer=1 do
MCPGPIO,9,0 //stop
MCPGPIO,1,1 //set gpio
Endon

 

a to jest w logu

 
1511266: MCP : Port=1 State=0 Output value=0
1511306: EVENT: IN1#State=0
1511322: ACT : MCPGPIO,9,1
1511326: MCP : port#9: set to 1
1511328: ACT : TimerSet,2,3
1511346: MCP : Port=9 State=1 Output value=1
1511380: EVENT: O1#State=1
1514352: EVENT: Rules#Timer=2,1
 
i nic więcej, tak jak by timer działał i nic nie robił.
Dziękuje

 
Dodane : 10/03/2023 10:00 pm
(@moto-binek)
Wpisów: 3
Bywalec
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

znalazłem, głupi błąd

Rules#Timer=2

tak powinno byc


 
Dodane : 10/03/2023 11:08 pm
Udostępnij: