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

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

$
0
0
The kernel uses the BCM pin numbering, not the physical header numbering.
i.e. GPIO26 is pin 37. Whereas pin 26 is GPIO7.
So which pin are you driving high?

You can also use the gpiod tools to check that the problem isn't in your code. e.g.

Code:

gpioget 0 26

Statistics: Posted by warthog618 — Wed May 08, 2024 5:01 pm



Viewing all articles
Browse latest Browse all 5895