Skip to content

slietar/amf-rotary-valve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amf-rotary-valve

This Python package provides control of AMF rotary valves.

Installation

$ pip install amf-rotary-valve

# List available devices
$ python -m amf_rotary_valve

Usage

from amf_rotary_valve import AMFDevice

device = AMFDevice(address="COM3")
device = AMFDevice(address="/dev/tty.usbmodem1101")
async with device:
  await device.home()

  valve_count = await device.get_valve_count()
  current_valve = await device.get_valve()

  # Rotate to the next valve
  await device.rotate(current_valve % valve_count + 1)
for info in AMFDevice.list():
  async with info.create() as device:
    print(await device.get_unique_id())

About

Python package that provides control of AMF rotary valves

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages