gpio.mode(9, gpio.INPUT, gpio.PULLUP)jankop wrote:Give to first line init.lua this command:Code: Select allgpio.mode(9, gpio.INPUT, gpio.PULLUP)
Thanks it works! But now weird thing happpens. Even after I re-flashed the nodemcu firmware with ESP8266Flasher, the init file still not being wiped. Now when the chip is reset, it starting doing the init file, now I can do nothing to the chip...help!
For the esp8266-12 I created a file blank1024kB.bin. The one I uploaded 4x from address 0x00000, 0x100000, 0x200000 and 0x300000. Then reflash firmware.