NodeMCU V3 ESP8266 Pinout

Great microcontroller, bought it at az-delivery.de (no ref link).

The onboard LED pin is 2 (GPIO 4).

from machine import Pin
from time import sleep

pin = machine.Pin(2, machine.Pin.OUT, 1)
while True:
    pin.off() if pin.value() else pin.on()
    sleep(1)

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.