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 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.
(use
Code:
sudo apt install gpiodOh, 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