Skip to content
This repository was archived by the owner on Jan 23, 2021. It is now read-only.
This repository was archived by the owner on Jan 23, 2021. It is now read-only.

how do I do when GPIO0 is high write GPIO2 Low? #26

Description

@marcosmaia

how do I do when GPIO0 is high write GPIO2 Low?

Is this the code?
Where do I put it?
// // replicate GPIO0 input to GPIO2 output
// GPIO gpio0(0), gpio2(2);
// gpio0.modeInput();
// gpio2.modeOutput();
// while (1) {
// gpio2.write( gpio0.read() );
// }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions