谢谢智哥,问题已经解决,夸一波咱家的APP
1
17854171869
@17854171869
0
声望
8
楼层
783
资料浏览
0
粉丝
0
关注
17854171869 发布的帖子
-
关于定时器回调函数的问题
def tick(timer): # we will receive the timer object when being called
print(flag)
flag = flag+1tim = pyb.Timer(4, freq=0.05) # 0.05 create a timer object using timer 4 - trigger at 1Hz
tim.callback(tick)为什么flag实现不了自加