A Basic Interpreter written from scratch for the ESP8266

Moderator: Mmiscool

User avatar
By livetv
#55482 Right now the handler for it is hot-wired to GPIO2. This was to accommodate ESP-01 users who have only a couple GPIOs to play with. This pin is determined early in the initialization process and unless a command was going to be added to explicitly change it, that's the way it will stay. I'd also like to run my temp sensors on a different pin but I'd rather not inconvenience the other users who need it where it is.

One possibility would be to create a system variable set from the Settings page for the desired GPIO. That variable can be read when the interpreter initializes. If blank, it defaults to GPIO2 but if there's another value in there, that other pin is used instead.