Created
September 15, 2017 02:40
-
-
Save omiq/2386849e4aaaf9b8533ff2f5f21461b3 to your computer and use it in GitHub Desktop.
Feather ESP8266 Blink example
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
from time import sleep | |
import machine | |
from machine import Pin | |
redled = machine.Pin(0, machine.Pin.OUT) | |
blueled = machine.Pin(2, machine.Pin.OUT) | |
redled.value(0) | |
blueled.value(1) | |
for i in range(0,10): | |
print(i) | |
redled.value(1) | |
blueled.value(0) | |
sleep(1) | |
redled.value(0) | |
blueled.value(1) | |
sleep(1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment