You can simply configure the pins as inputs with pull-up resistor. The voltage level is then set by the resistor. If the ESP reads the pins only after a reset, this might have been too late. If that is the case, you have to reset the ESP again, or add hardware resistors.
↧