1from driver import TIMER 2 3tim0 = TIMER(0) 4tim0.init(period=1000000, mode=TIMER.PERIODIC, callback=lambda t:print('timer_test_log2222')) 5 6tim0.stop() 7tim0.deinit()