diff --git a/src/Robotics/waterMotorTest.py b/src/Robotics/waterMotorTest.py new file mode 100644 index 0000000..fde25a0 --- /dev/null +++ b/src/Robotics/waterMotorTest.py @@ -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)) \ No newline at end of file