Use GPIO with on-board tools
I'm on a custom Debian Kernel 5.16 trying to toggle an LED with industry standard on-board tools used for GPIO these days, namely the gpiod package. Now according to https://github.com/eclipse/mraa/blob/master/src/x86/up2.c the PIN number 7 should be a GPIO, namely GPIO4:
mraa_up2_set_pininfo(b, 7, "GPIO4", (mraa_pincapabilities_t) {1, 1, 0, 0, 0, 0, 0, 0}, MRAA_UP2_NORTHWEST_BASE + 76, 1, 76);
From that function call I see, that it is connected to gpiochip1, line 76. Great so I wire up my LED to that pin and do
gpioset gpiochip1 76=1
Well my LED does not show a motion, can anyone tell me why? It's not the LED, as is shines brightly when I connect it to 3,3V or 5V on PIN 1 or PIN 2.
Answers
-
Hi @edwinsala ,
Kindly check the guide from the Wiki , we have not validated this on debian and also make sure you are using one of our Libmraa supported products
-
I read about Libmraa, but this is a system dependent approach with a quite outdated library. So I was hoping that someone did it the Linux way.