在学习了解,参照https://gitee.com/Lyon1998/pikapython/blob/master/examples/Device/GPIO_CALLBCK.py
import PikaStdDevice as std
print('hello pikascript')
io = std.GPIO()
io.setPin('P4')
io.setMode('in')
io.enable()
def cb1(signal):
print('cb1', signal)
io.setCallBack(cb1, io.SIGNAL_FALLING)
while True:
pass
在ESP32S3下,默认有看门狗,py文件里有while循环,会触发看门狗.
是哪里有触发调度的我没去处理?
离线
弄ESP32需要vTaskDelay切换这个是知道的.只是不清楚PIKA里关联的需要RTOS支持,time这部分.
离线