Struct rust_gpiozero::output_devices::Buzzer [] [src]

pub struct Buzzer { /* fields omitted */ }

Extends DigitalOutputDevice and represents a digital buzzer component.

Connect the cathode (negative pin) of the buzzer to a ground pin; connect the other side to any GPIO pin.

Methods

impl Buzzer
[src]

[src]

[src]

Trait Implementations

impl Debug for Buzzer
[src]

[src]

Formats the value using the given formatter. Read more

impl DigitalOutputDeviceTrait for Buzzer
[src]

impl OutputDeviceTrait for Buzzer
[src]

[src]

Get the pin

[src]

Turns the device on.

[src]

Turns the device off.

[src]

Reverse the state of the device. If it's on, turn it off; if it's off, turn it on. Read more

Auto Trait Implementations

impl Send for Buzzer

impl Sync for Buzzer