M5StickC built in LED
-
Any insight on how the red led on pin 10 of the M5StickC is wired up?
I noticed that, using the Arduino IDE
pinMode(10, OUTPUT);
turns the LED on and subsequently
digitalWrite(10, HIGH);
turns it OFF, while
digitalWrite(10, LOW);
turns it ON again
-
Its common to wire a LED to a GPIO (pin) as Active "Low".
One pin of the LED gets wired to +V and the other pin goes to the GPIO.
At some point there is most likely a resister to limit the current.Apparently its easier (less heat?) for the GPIO (pin) to source power by pulling the circut "low".