05-树莓派-基于Wringpi的树莓派PWM_RGB_彩虹灯C程序【外设接口对应&编译过程&git仓库地址&实际演示】

一.Git仓库地址

1.Address:

https://github.com/WiringPi/WiringPi     //git到本地即可,目前作者最新版本是2.70

wish@raspberrypi:/WiringPi/wiringPi $ gpio -v
gpio version: 2.70
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
  Type: Pi 4B, Revision: 05, Memory: 8192MB, Maker: Sony
  * Device tree is enabled.
  *--> Raspberry Pi 4 Model B Rev 1.5
  * This Raspberry Pi supports user-level GPIO access.
wish@raspberrypi:/WiringPi/wiringPi $

2.SDK介绍

wish@raspberrypi:/WiringPi $ ls
build  COPYING.LESSER  debian  debian-template  devLib  examples  gpio  INSTALL  newVersion  People  pins  README.md  update  VERSION  version.h  wiringPi  wiringPiD
wish@raspberrypi:/WiringPi $

1)WiringPi_SDK:

在软件开发中,SDK(Software Development Kit)是一组工具、库和文档的集合,用于帮助开发人员创建特定平台或技术的应用程序。

2)Build:

  构建配置:构建文件用于配置项目的构建过程,包括编译源代码、链接库文件、生成可执行文件等。它定义了编译器选项、依赖关系、目标文件路径等构建相关的设置。

  自动化构建:构建文件可以用于自动化构建过程,通过简单的命令或脚本,可以执行一系列构建步骤,从而减少手动操作的工作量。这样可以提高开发效率,并确保每次构建都是一致的。

  依赖管理:构建文件可以指定项目所依赖的其他库或模块,以及它们的版本要求。这样,在构建过程中,构建工具可以自动下载、编译和链接这些依赖项,确保项目能够正确地使用它们。

  跨平台支持:构建文件可以针对不同的操作系统和平台进行配置,以适应不同的开发环境。通过构建文件,可以定义不同平台上的编译器选项、库文件路径等,从而实现跨平台的开发和构建。

3)devLib 

   已经支持的设备相关源代码和链接库


4)examples

  示例代码
  Makefile

5)INSTALL

   For help and support see:

 * https://github.com/WiringPi/WiringPi/issues
 * https://discord.gg/SM4WUVG

 * wiringPi originally created by Gordon Henderson
 * https://projects.drogon.net/


6)newVersion 

    # This file is part of wiringPi:
    #  A "wiring" library for the Raspberry Pi
    
    #    wiringPi is free software: you can redistribute it and/or modify
    #    it under the terms of the GNU Lesser General Public License as published by
    #    the Free Software Foundation, either version 3 of the License, or
    #    (at your option) any later version.
    #
    #    wiringPi is distributed in the hope that it will be useful,
    #    but WITHOUT ANY WARRANTY; without even the implied warranty of
    #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    #    GNU Lesser General Public License for more details.
    #
    #    You should have received a copy of the GNU Lesser General Public License
    #    along with wiringPi.  If not, see <http://www.gnu.org/licenses/>.

7)People 

        Just a quick note to some people who've provided help, suggestions,
        bug-fixes, etc. along the way...

8)wiringPi

源码

9)Others

二.硬件接口对应

1按照wringpi的对应关系

const int Red_Pin=1; //wPi中的1

const int Green_Pin=4; //wPi中的4

const int Blue_Pin=5; //wPi中的5


wish@raspberrypi:/WiringPi/examples $ gpio readall
 +-----+-----+----
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值