eclipse / mraa

Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.

Home Page:http://mraa.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RockPi4 Pull Up

stepuraK opened this issue · comments

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?