实验目的: 1.掌握继电器用法 示例代码: import pyb IN1 = pyb.Pin('A0', pyb.Pin.OUT_PP) IN1.high() IN2 = pyb.Pin('A1', pyb.Pin.OUT_PP) IN2.high() while True: IN1.low() IN2.high() pyb.delay(1000) IN1.high() IN2.low() pyb.delay(1000) IN1.low() IN2.low() pyb.delay(1000) IN1.high() IN2.high() pyb.delay(1000)