luc-github / ESP3D-WEBUI

A Web UI for ESP8266 or ESP32 based boards connected to 3D printers / CNC
GNU General Public License v3.0
762 stars 305 forks source link

[FEATURE REQUEST] Reset a pin's state with [ESP201] #68

Closed josedpedroso closed 5 years ago

josedpedroso commented 5 years ago

I connected GPIO 2 on my ESP01 to my printer's reset pin. To reset the printer, I use a macro in spiffs that contains:

[ESP201]P2 V1
[ESP201]P2

This is too fast to actually reset the printer, but I have no way to delay the second command that resets the pin. Issuing these commands manually from the dashboard works fine. Using just the first line in the macro also works, ie, the printer reboots, but I'm not comfortable leaving the printer's reset pin high all the time.

I see 2 possibilities here: I either need a command to delay the macro's execution or the [ESP201] command should have an option to reset a pin to its original state after some time.

As a workaround, I tried adding an [ESP410] command between the 2 [ESP201] lines, but that did nothing at all.

UI: 2.0c9 / FW: 2.0.0.c25

Thanks.

josedpedroso commented 5 years ago

Please ignore this issue, I've just realized that it's on the wrong project.

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.