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.
Categories
- 303 All Categories
- 104 Announcements & News
- 52 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 53 Unboxing & Project Sharing
- 24 Tech Updates
- 592 UP Products
- 6 UP Xtreme i12
- 1 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 13 UP Squared V2
- 41 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 49 UP Squared Pro
- 140 UP Xtreme
- 826 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 215 Starter Kits & Peripheral