Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By primetime
#51623 Hi guys,

I just recently got a nodemcu lolin v3 board and I'm trying to teach myself electronics and stuff about it.

I'm trying to slowly teach myself how to run/program stuff using lua and I've sort of hit a wall regarding this board. So my problem is with the onboard led. I was playing around with just simple commands on ESP8266 LuaLoader 0.90 using the interactive mode and I've seem to run into a bit of confusion regarding the programming of the led.

So what I've done is basically type out the following lines one by one in LuaLoader:
Image

When gpio 4 is set to HIGH, the led isn't turning on, but when I set it to LOW it turns on the onboard LED. Am I just not getting it? I thought that when I set it to HIGH, that's when the LED should turn on.

Thanks for anyone that can help!