8,367
edits
Changes
→Usage of GPIO and WiringPi
You could also download files from github: <br>
[https://github.com/OrangePiLibra/WiringPi.git <span style="color:#0000ff;">https://github.com/OrangePiLibra/WiringPi.git</span>]
<span style="background:#fffaa5">env GIT_SSL_NO_VERIFY=true git clone<span><br><br>
* Compile and install WiringPi
In order to use wiringPi C library, first you need to import file of "wiringPi.h". You need to initialize wiringPi before using GPIO with function wiringPiSetup(). And then you could configure pin mode into INPUT or OUTPUT. And please note that the pin number should corresponding to wiringPi. Finally you could use function digitalWrite() and digitalRead() to read and write. <br>
<br>
== '''Source Code Compilation of Android and Linux ''' ==
<br>