I have a problem I connected the switch to GPIO14 1 and 2 to GPIO16.
The first works fine, the second (GPIO16) physically works well, but ESP disconnects from the WiFi network, no access to the web interface, just restart helps.
Everything works fine when the first button is pressed (GPIO14, Inversed, state 1), then the 2 button also works correctly (GPIO14, Inversed, state 1). But when deactivate the first (GPIO14), activation of a second (GPIO16) causes problems, just restart helps.
Please help because I already have a ready-made PCB.
Connect button is done in the mode pull-up.





Rules:
Code: Select all
on System#Boot do
gpio,12,1
gpio,13,1
endon
on SwitchAOn do
gpio 12,0
inputswitchstate 14,1
endon
on SwitchAOff do
gpio 12,1
inputswitchstate 14,0
endon
on SwitchBOn do
gpio 13,0
inputswitchstate 16,1
endon
on SwitchBOff do
gpio 13,1
inputswitchstate 16,0
endon
on SwitchA#switch do
if [SwitchA#switch]=1
event SwitchAOn
else
event SwitchAOff
endif
endon
on SwitchB#switch do
if [SwitchB#switch]=1
event SwitchBOn
else
event SwitchBOff
endif
endon
Best Regards Robert