-->
Page 1 of 1

Lolin v3 Weird Onboard Led

PostPosted: Wed Jul 27, 2016 9:22 pm
by primetime
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!

Re: Lolin v3 Weird Onboard Led

PostPosted: Thu Jul 28, 2016 9:40 am
by martinayotte
There are 2 ways for connecting a LED on a GPIO, source or sink mode.
Your board simply has the LED connected in sink mode.

Image