樹莓派-Wiring Pi類庫

Wiring Pi:GPIO Interface library for the Raspberry Pi

關於

WiringPi是一個基於PIN的訪問GPIO的庫,這個庫是使用C語言編寫的,用在BCM2835,BCM2836以及BCM2837的板子上,可以用在所有的樹莓派的開發板上,他是基於GNU LGPLv3的許可,然後可以用在C,C++還有BASIC語言上,這個設計好像Arduino的“Wiring”系統,可以用在C/C++項目中,是一個初學者的工具
WiringPi設計在用32位的樹莓派上,它不支持其他的任何平臺,或者是跨平臺編輯的版本,還有其他的操作系統,雖然有的人試過這麼做,但是我還沒有使用過
原生的樹莓派有26個引腳,支持GPIO連接,有8個I/O pin腳,他們可以被編輯成數字輸出或者輸入,他們其中的兩個(40pin和26pin)可以設計爲PWM輸出,它還有兩線制的I2C接口和4顯示的SPI接口(如果有第二選擇的線,那麼就一共需要5根線),還有UART的串口輸出
最近有一些變化如下:

  • The original model B with the 26-pin GPIO connector.
  • The model B, Revision 1.1 Raspberry Pi has an additional 4 GPIO lines
    on a separate connector which you have to solder onto the board.
  • The model A which is essentially the same as the model B v1.1 but
    without the USB hub and ethernet connector.
  • The model A+ and B+ Raspberry Pi’s represents 2 years of research,
    development and testing and now features a single 40-pin GPIO
    connector with 28 usable GPIO pins and 4 USB sockets. (No USB or
    Ethernet on the A+)
  • The model B v2 features a quad-core Arm A7 processor with 1GB of RAM.
    Same GPIO.
  • The model Zero is a souped-up (1GHz) cut down Pi A+. 40-pin GPIO
    connector and very little else. $5 price tag.
  • The model B v3 features a quad-core Arm A8 processor (64-bits) with
    the same RAM and GPIO as the model 2, however it also features
    on-board Wi-Fi and Bluetooth. Still the same $35 price tag.
  • The model Zero-W is adds on-board Wi-Fi, Bluetooth and the Pi camera
    connector to the existing model Zero board.
    當不適用總線形式的傳輸的時候,I2C,SPI還有URAT的接口可以都可以使用通用的GPIO的引腳來實現數據發送
    WiringPi包含一些命令行的方式來用在程序中,並且可以設置GPIO的PIN腳,你可以在SHELL中使用它來讀寫pin腳的內容
    WiringPi是可以拓展的,可以使用WiringPi來使用模擬量,可以使用麪包板來拓展,
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章