Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

C/C++ • Re: Issue with Reading in Pin from Kernel Module

$
0
0
So what does gpioget say? If that also says 0 then your hardware might be toast. If that works then the problem is in your code.
(use

Code:

sudo apt install gpiod
to install gpioget if you haven't already).

Oh, and it could be that you are using the old gpio API (gpio_XXX) rather than the newer descriptor based API (gpiod_XXX) which has different numbering again. Sorry for being brief, but I would need to go look into the kernel code for more detail and I don't have time for that just now. You should use the descriptor based API.

Statistics: Posted by warthog618 — Wed May 08, 2024 11:25 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles