Struct rust_gpiozero::output_devices::Motor [] [src]

pub struct Motor { /* fields omitted */ }

Represents a generic motor connected to a bi-directional motor driver circuit (i.e. an H-bridge). This is a composite device.

Methods

impl Motor
[src]

[src]

creates a new Motor instance

[src]

Drive the motor forwards.

[src]

Drive the motor backwards.

[src]

Stop the motor.

Trait Implementations

impl CompositeDevices for Motor
[src]

[src]

Shut down the device and release all associated resources.

Auto Trait Implementations

impl Send for Motor

impl Sync for Motor