|
Edited by soroush_crazy at 2016-6-4 23:20
Webiopi is an application that allow you to control GPIO (turn on and off or watch your gpio state) .
I was install it on my raspberry pi2 with bellow structure;but now it is not work on my orange pi (one)
sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install python-rpi.gpio
cd ~
wget http://nchc.dl.sourceforge.net/p ... ebIOPi-0.7.1.tar.gz #### (downloa link page is : https://sourceforge.net/projects/webiopi/files/)
tar -xvzf WebIOPi*
cd WebIOPi*
nano python/native/cpuinfo.c #### change "BCM2708" to "BCM2709";
nano python/native/gpio.c #### change "#define BCM2708_PERI_BASE 0x20000000" to "#define BCM2708_PERI_BASE 0x3f000000"
./setup
sudo webiopi -d -c /etc/webiopi/config
or
webiopi
but it in web page gpio not work.maybe beacuse of defrence between rpi and orange pi
what should "BCM..." chnage to ?
how about "#define BCM2708_PERI_BASE 0x20000000" ?
any body can help me?! |
|