Skip to content

digital::OutputPin providing toggle method #68

@DoumanAsh

Description

@DoumanAsh

I'm not sure of future for the trait, but I found myself writing own convenience like toggle which is basically

if self.is_low() {
    self.set_high()
} else {
    self.set_low()
}

I feel like this could be provided method for the trait, unless there is plans for OutputPin to have more than two variants

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions