orangepi-xunlong / wiringOP

wiringPi for Orange Pi
GNU Lesser General Public License v3.0
410 stars 194 forks source link

Orange PI Zero PUD DOWN/UP not working #40

Closed oleksandr-sovenko closed 1 year ago

oleksandr-sovenko commented 2 years ago

I noticed the problem with PUD DOWN/UP when I used this library wiringOP with my Orange PI Zero. I wanted to create panel with buttons and I used GPIO pins with mode INPUT. But I noticed pins have random state and it's really not good for buttons, because I can't read normal state 0 or 1 when button pressed or not. So I checked this one https://github.com/xpertsavenue/WiringOP-Zero and now all good. As I understood from wiringOP removed maybe needed code.

oleksandr-sovenko commented 2 years ago

Something is wrong with this function maybe void pullUpDnControl (int pin, int pud) in wiringPi/wiringPi.c