Vycz
Vycz
``` import _thread import time import sensor, lcd def func(name): while 1: print("hello {}".format(name)) time.sleep(1) sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.run(1) sensor.skip_frames() _thread.start_new_thread(func,("1",)) lcd.init(freq=15000000) while(True): lcd.display(sensor.snapshot()) ``` 在sensor run后使用_thread.start_new_thread启动新线程无效
04-02 11:36:27.686 2961-4070/com.wxy.vpn2017 I/OpenVPN: Starting openvpn 04-02 11:36:32.881 2961-4070/com.wxy.vpn2017 I/OpenVPN: OpenVPN process exited 04-02 11:36:32.899 2961-4070/com.wxy.vpn2017 I/OpenVPN: Exiting
您好,如何才能让图片直接划出而不返回栈底?