We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c_tinkering [2016/02/29 14:24]
john1117
en:c_tinkering [2017/03/02 09:55] (current)
brian.kim [Python example]
Line 32: Line 32:
  
 ===== Linux ===== ===== Linux =====
-==== C example ==== +==== C example ​(With WiringPi) ​==== 
-1. Get the wiringPi library compatible **ODROID ​series**+1. Get the wiringPi library compatible **ODROID**
  
 +  sudo apt update && sudo apt install git
   git clone https://​github.com/​hardkernel/​wiringPi   git clone https://​github.com/​hardkernel/​wiringPi
  
Line 53: Line 54:
   * [[https://​github.com/​hardkernel/​WiringPi2-Python|WiringPi2-Python repository for ODROID]]   * [[https://​github.com/​hardkernel/​WiringPi2-Python|WiringPi2-Python repository for ODROID]]
  
-**Prerequisites**:​ You must have //​python-dev//​ and //​python-setuptools//​ installed If you manually rebuild the bindings with swig-python wiringpi.i+**Prerequisites**:​ You must have //**python-dev**// and //**python-setuptools**// installed If you manually rebuild the bindings with swig-python wiringpi.i
  
-  sudo apt-get install python-dev python-setuptools+  sudo apt-get install python-dev python-setuptools ​swig3.0
   ​   ​
 1. Get/setup WiringPi 2 for Python repository 1. Get/setup WiringPi 2 for Python repository
Line 67: Line 68:
  
 2. Build & install 2. Build & install
-  ​sudo python setup.py install+<​code>​ 
 +swig3.0 -python -threads wiringpi.i 
 +sudo python setup.py install 
 +</​code>​ 
 +Or 
 +<​code>​ 
 +./​build.sh 
 +</​code>​
  
 3. Get/Run the example source code 3. Get/Run the example source code
en/c_tinkering.1456725268.txt.gz · Last modified: 2016/02/29 14:24 by john1117
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0