OrangePi PC¶
Beware: OrangePi PC as a microcontroller is a very under-dev state, nothing made for RPi is supposed to work on this board. Good news is that Wiring GPIO kinda works as long as you use Wiring / C / proc intreface, no luck with python tools developed for RPi.
As a Gnu/Linux host it works fine, no problem for a small server or a thin client.
GPIO¶
In order to use gpio:
git clone https://github.com/zhaolei/WiringOP.git -b h3
... install
modprobe -f gpio-sunxi
Usage¶
echo 1 > /sys/class/gpio_sw/normal_led/data
echo 0 > /sys/class/gpio_sw/normal_led/data
echo 1 > /sys/class/gpio_sw/standby_led/data
echo 0 > /sys/class/gpio_sw/standby_led/data
# Controlling PIN 35:
echo 1 > /sys/class/gpio_sw/PA10/data
echo 0 > /sys/class/gpio_sw/PA10/data
Warning
gpiozero just does not work