Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 2G-IoT

54 bytes added, 19:15, 28 June 2022
Usage of GPIO and WiringPi
<div style="padding-left:40px;"><span style="background:#fffaa5;">sudo apt-get install git gcc make</span></div>
b.Download the latest source code <br>
You could download the latest WiringPi source code from official website: <br>http://www.orangepi.org/html/serviceAndSupport/index.html<br><br>You could also download files from github: <br>https://github.com/OrangePiLibra/WiringPi.git with the following command:<br>
<span style="background:#fffaa5;">env GIT_SSL_NO_VERIFY=true git clone</span><br>
c.Compile and install WiringPi<br>
Usage of C library on wiringPi:<br>
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>  
=== '''Connect to Network via GSM''' ===
<br>