logo

如何做多个软定时器 通过中断方式,计时器只要使能就能自动计时,不能用sleep 主程序都瘫痪了?

2018-11-18 14:25
F
_52ad

想做一些软定时器,就是在运行主程序运行时是可以计时的,在计时时不影响主程序运行,

2018-11-18 16:00
I
网红小智智 星瞳科技

https://docs.singtown.com/micropython/zh/latest/openmvcam/openmvcam/quickref.html#id2

I
网红小智智 星瞳科技

time.ticks_ms()可以获得运行的时间。

2018-11-20 10:53
I
网红小智智 星瞳科技

https://docs.singtown.com/micropython/zh/latest/openmvcam/library/pyb.html#id1

pyb.millis()