Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • please add a clear, answerable question to your post Commented Feb 3, 2023 at 23:31
  • 1
    You've just dumped a large amount of code here, none of which appears to use pad4pi, even though you mention that. First rule of getting something like this working: start with an absolute minimum of code. I'd suggest you start with the pad4pi example code and try to get that to work. Something to double check: your pin numbers. They look like actual 1-40 numbers. Are you sure that's what pad4pi wants? Try GPIO numbers and see if that makes a difference. Commented Feb 5, 2023 at 21:16
  • Thanks for comment, i check the pins connections on raspberry, and i connect on wrong pins, that's why my code does not work kk Commented Feb 6, 2023 at 13:32