I'm working on a project and could use some help. I was wondering how I could run a peristaltic pump in reverse using circuit python. I have the pump turning on through a non latching relay attached to a FunHouse (code below). Any tips would be great!
Thanks
Code: Select all
import board
import time
import digitalio
water_pump = digitalio.DigitalInOut(board.A2)
water_pump.direction = digitalio.Direction.OUTPUT
water_pump.value = True
time.sleep(5)
water_pump.value = False