orangepi-xunlong / wiringOP

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

In orange pi one plus change mode on wPi 1 to off will make system break down #29

Closed tlz4320 closed 3 years ago

tlz4320 commented 3 years ago

I try to use wiringOP in my one plus, but when I set mode of wPi 1 to off, the system will break down. But the wPi 1 original mode is off. If I set it to out or in will be all right.

basinilya commented 3 years ago

This happens to me too. This was the reason why I had to enable the watchdog service for /dev/watchdog. Anyway, when I do:

gpio mode 9 OFF

the board freezes. Nothing is printed to the serial console and I can't send commands to it or via wi-fi. so I'm not sure how to troubleshoot it. My board is Orange Pi Lite with Armbian 21.02.1 Buster with Linux 5.10.12-sunxi

Wiring OP version: 35de0150a9c319a52badd15abe7ef172bc2e4afe

orangepi-xunlong commented 3 years ago

When GPIO is OFF, it means IO disable. At present, GPIO can only be set as input or output, but cannot be set as OFF.

In addition,

gpio mode 9 OFF

It is used to set the up and down resistance of GPIO port. It is not fit at present.