Skip to content

RockPi4 Pull Up #1107

Open
Open
@stepuraK

Description

Hello guys.
I try to pull up gpio pin on RockPi4 but get an error only:

Start to set mode
MRAA: Invalid resource.

Code is here:

mraa::Result status;

/* initialize GPIO */
mraa::Gpio gpio(GPIO_PIN);

printf("Start to set mode\n");
status = gpio.mode(mraa::MODE_PULLUP);
if (status != mraa::SUCCESS) {
printError(status);
return EXIT_FAILURE;
}

What's problem?
Is it possible to to use pull up/down feature?

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