简 介: 由于使用MicroPython,如果使用指令查询方式读取AM2302的数据,无法控制到非常精确读取时间信息。利用ESP32 MicroPython中的IO中断,获取AM2302的上升沿时间,利用ticks_cpu() 对于上升沿进行标定。然后在通过比较两个上升沿时间的差异,获取输出0,1数据。
随着Python成为主流的编程语言,MicroPython在嵌入式系统领域也越来越热门起来,尤其是大家喜爱的ESP32以及树莓派基金会刚推出的基于RP2040微控制器的Pico模块都支持MicroPython。 作为一行代码都不会写的板农,在很多时候觉得非常受限,发誓一定要找个时机好好 ...
In theory, using MicroPython on the ESP32 is easy — just flash an image and connect using a serial port. But that leaves a lot of things you still have to do. You need to move files between the two ...