MicroPython on ESP8266

NodeMCU基于Lua语言, 用起来不习惯, 改成Python更好! Flash Firmware $ wget http://micropython.org/resources/firmware/esp8266-20160909-v1.8.4.bin # manufacturer ef is Winbond (ex Nexcom) and device 4016 is W25Q32, »

GPIO Programming

#!/usr/bin/env python # # BUTTON PWMLED # ------ ------ # pressed on # released off # held pulse # from gpiozero import Button, PWMLED from signal import pause btn = Button(20) »