
micro python
carpe dime
这个作者很懒,什么都没留下…
展开
-
基于ESP8266的Micro Python入门教程1 - GPIO操作
开发环境ESP8266开发板: ESP-NODENCU(4 MB Flash) 操作系统:Win7 64位from machine import Pinp0 = Pin(0, Pin.OUT) # create output pin on GPIO0p0.on() # set pin to "on" (high) levelp0.off...原创 2019-02-15 15:04:02 · 1745 阅读 · 0 评论 -
基于ESP8266的Micro Python入门教程2 - 定时器操作
1.延时与系统时间获取import timetime.sleep(1) # sleep for 1 secondtime.sleep_ms(500) # sleep for 500 millisecondstime.sleep_us(10) # sleep for 10 microsecondsstart = time.ticks_ms(...原创 2019-02-15 15:41:17 · 1876 阅读 · 0 评论