orangepi-xunlong / wiringOP

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

Orange PI Zero 2 PUD DOWN/UP not working #49

Closed NadavK closed 1 year ago

NadavK commented 2 years ago

Same problem as https://github.com/orangepi-xunlong/wiringOP/issues/40 but for Orange Pi Zero 2. The ping is set as OUT instead of being set with resistance. The problem is not just the output of readall - the button itself randomly reads high/low.

$ sudo gpio mode 19 up
$ sudo gpio readall
 +------+-----+----------+------+---+  Zero 2  +---+------+----------+-----+------+
 | GPIO | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | GPIO |
 +------+-----+----------+------+---+----++----+---+------+----------+-----+------+
 |  262 |  19 |      PI6 |  OUT | 0 | 31 || 32 |   |      |          |     |      |
 +------+-----+----------+------+---+----++----+---+------+----------+-----+------+
 | GPIO | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | GPIO |
 +------+-----+----------+------+---+  Zero 2  +---+------+----------+-----+------+
baiywt commented 1 year ago

https://github.com/orangepi-xunlong/wiringOP/commit/1cb00859639425d29349d0610434d203c07f2d15