lethe wrote:I don't get your need for a pulldown here. Just connect a resistor from VCC to the GPIO and a button from the GPIO to GND.
In your scenario, the external resistor isn't even needed: The same could be achieved with the internal pull-up. The problem with this configuration is, that if the switch is closed and a power cycle happens, the ESP is starting up in flash-mode, and not executing the user code anymore. Not very reliable.
lethe wrote:What's the issue with having it read 1 in open state?
As said, the problem is pulling the GPIO to 0 in closed state during power up.