-->
Page 1 of 1

How nodemcu work for uploading and compiling the code ?

PostPosted: Sat Oct 19, 2019 6:52 am
by eagle1
Hello,

I have the LoLin dev board and I connected it to lualoader 0.87, I've done couple things; like, sending direct commands, setting the gpio.mode, writing to gpio.write and reading the gpio.read status.

But I don't know how to write a code in lua, how to upload it and compile it.

I choosed file.list and removed everything on the chip.

And this is the principle of how this thing work, that I don't understand and didn't get it yet.

Can this board work on one single file? Does it require some init code so it can run any other files?

I uploaded this code but it gives me this.

Code: Select allSaturday, October 19, 2019  14:51:36

Binary upload: F:\programming_programs\Programming\programming_dev\nodeMCU & ESP\scripts\led_blink1.lua
stdin:1: attempt to call global 'LLbin' (a nil value)
> > dofile("LLbin.lua")
cannot open LLbin.lua
> uart.setup(0,9600,8,0,1,0)
> > >