zeroday wrote:gpio.read() api put the pin into input mode.
Maybe this should be added as a comment in the "Manipulate hardware like a arduino" example on https://github.com/nodemcu/nodemcu-firmware
Like the example is currently written it makes one think that one can read the state of the output pin which was set in the preceding line.