It occurred to me while pondering that circuit that a diode would serve in place of the transistor and base resistor. I tried it and it seems to work perfectly. The circuit that I tested is shown below, the pullup resistors are actually on the ESP8266 board.
It occurred to me while pondering that circuit that a diode would serve in place of the transistor and base resistor. I tried it and it seems to work perfectly. The circuit that I tested is shown below, the pullup resistors are actually on the ESP8266 board.