test water pump
This commit is contained in:
parent
c81ba6ddc7
commit
50e2ffea02
14
src/Robotics/waterMotorTest.py
Normal file
14
src/Robotics/waterMotorTest.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import RPi.GPIO as GPIO
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
motor_channel = (37, 35)
|
||||||
|
|
||||||
|
GPIO.setwarnings(True)
|
||||||
|
GPIO.setmode(GPIO.BOARD)
|
||||||
|
GPIO.setup(motor_channel, GPIO.OUT)
|
||||||
|
|
||||||
|
GPIO.output(motor_channel, (GPIO.HIGH, GPIO.LOW))
|
||||||
|
print('Should be on')
|
||||||
|
|
||||||
|
sleep(1)
|
||||||
|
GPIO.output(motor_channel, (GPIO.LOW, GPIO.LOW))
|
Loading…
x
Reference in New Issue
Block a user