ESP8266/Py
microPython on ESP8266
>>> from time import sleep >>> def blink(): ... led.low() ... sleep(0.5) ... led.high() ... >>> def wink(): ... led.low() ... sleep(0.1) ... led.high() ... sleep(0.2) ... led.low() ... sleep(0.1) ... led.high() ... >>> wink() >>> d1.irq(trigger=Pin.IRQ_FALLING | Pin.IRQ_RISING, handler=callback) <IRQ>