import pyb
import time
from pyb import Pin,Timer
from DHT11 import DHT11
S=DHT11('Y2')
A=''
def f(t):
global A,S
pyb.LED(1).toggle()
A=S.read_temps()
tim=Timer(1,freq=1)
tim.callback(f)
报错如下:
uncaught exception in Timer(1) interrupt handler
MemoryError: