Struct rusty_nail::dispenser::AdafruitPeristalticDispenser::AdafruitPeristalticDispenser [] [src]

pub struct AdafruitPeristalticDispenser { /* fields omitted */ }

An implementation of a Dispenser which works with the Adafruit 12V DC Peristaltic Pumps. These pumps have the following parameters:

This will allow us to create a controller for the dispenser which should output ~100mL/min pretty reliably and scale that flow rate.

Methods

impl AdafruitPeristalticDispenser
[src]

Create a new AdafruitPeristalticDispenser which will have pwm control over the pwmchip at number. This function does not export he PwmChip

Arguments:

  • chip: u32 - The pwmchip number to provide to AdafruitPeristalticDispenser
  • number: u32 - The pwmchip number to provide to AdafruitPeristalticDispenser

Returns:

  • An error if setting the PWM chip is not found or AdafruitPeristalticDispenser.

Trait Implementations

impl Debug for AdafruitPeristalticDispenser
[src]

Formats the value using the given formatter.

impl Dispenser for AdafruitPeristalticDispenser
[src]

Get the current liquid level in mL.

Dispense some quantity of liquid in mL.

Set the current liquid level in mL.

Returns the maximum flow rate of the pump in mL/s

Sets the current flow rate of the pump in mL/s