User Manual Orange Pi Zero 3

  Features   |  Use   |    Linux     |  Linux SDK   |  Android   |  Android SRC   |

RU          EN  

Chapt 3. Instructions for use of Debian/Ubuntu Server and Xfce desktop system
Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122  


3.17. How to install wiringOP

Note that wiringOP has been pre-installed in the linux image released by Orange Pi. Unless the code of wiringOP is updated, there is no need to re-download, compile and install, just use it directly.

The storage path of the compiled wiringOP deb package in orangepi-build is: orangepi-build/external/cache/debs/arm64/wiringpi_x.xx.deb

After entering the system, you can run the gpio readall command. If you can see the following output, it means that wiringOP has been pre-installed and can be used normally.

wiringOP is currently mainly adapted to the functions of setting GPIO port input and output, setting GPIO port output high and low levels, and setting up and down pull-down resistors. Functions such as hardware PWM are not available.



Img 3.107

  • 1) Download the code of wiringOP

    orangepi@orangepi:~$ sudo apt update
    orangepi@orangepi:~$ sudo apt install -y git
    orangepi@orangepi:~$ git clone https://github.com/orangepi-xunlong/wiringOP.git -b next

    Note that the source code needs to download the code of the wiringOP next branch, please don't miss the -b next parameter. If you have problems downloading the code from GitHub, you can directly use the wiringOP source code that comes with the Linux image, and the storage location is: /usr/src/wiringOP.

  • 2) Compile and install wiringOP

    orangepi@orangepi:~$ cd wiringOP
    orangepi@orangepi:~/wiringOP$ sudo ./build clean
    orangepi@orangepi:~/wiringOP$ sudo ./build

  • 3) Test the output of the gpio readall command as follows

    a. There is a one-to-one correspondence between pins 1 to 26 and 26 Pins on the development board

    b. Pin 27 corresponds to pin 10 of 13pin on the development board

    c. Pin 29 corresponds to pin 11 of 13pin on the development board

    d. Pin 31 corresponds to pin 12 of 13pin on the development board

    e. Pin 33 corresponds to pin 13 of 13pin on the development board

    f. Pins 28, 30, 32, and 34 are empty, please ignore them


     <         > 


  • Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122