Created
January 29, 2018 17:07
-
-
Save ShakataGaNai/23d2bef5fd17232ba9e178abb9e995df to your computer and use it in GitHub Desktop.
A hello world (blinking LED) for Micropython on the Wemos D1 Mini (ESP8266)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://obviate.io/?p=8022 for more details | |
import time | |
from machine import Pin | |
led = Pin(2, Pin.OUT) | |
while True: | |
if led.value(): | |
led.off() | |
else: | |
led.on() | |
time.sleep_ms(250) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what is the issue here ?