Raspberry pi 如何在proteus中使用树莓pi控制电机
我试图在模拟中用树莓pi控制我的马达,但我似乎无法让它停止,即使我在5秒钟后将针脚调低,它仍在继续Raspberry pi 如何在proteus中使用树莓pi控制电机,raspberry-pi,proteus,Raspberry Pi,Proteus,我试图在模拟中用树莓pi控制我的马达,但我似乎无法让它停止,即使我在5秒钟后将针脚调低,它仍在继续 import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library #import busio #import digitalio #import board from time import sleep # Import the sleep function from the time module GPIO.setwarnings(False
import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library
#import busio
#import digitalio
#import board
from time import sleep # Import the sleep function from the time module
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(38, GPIO.OUT, initial=GPIO.LOW)
while True:
GPIO.output(38, True)
sleep(5)
GPIO.output(38, False)
sleep(10)