Use GPIO with on-board tools

edwinsala New Member Posts: 2
edited January 2022 in UP Squared Linux

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 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.