Problem with nodemcu esp-01 can't connect to wifi
ESP-01 modules use 26 MHz crystal. Set the Crystal frequency in IDE to 26 MHz.

Both io pins (0 and 2) on esp-01 have pull-up circuit. That is why you think you measured 'inverted' logic.