Arduino庫

從 YFRobotwiki
跳到: 導覽搜尋

Arduino官方庫



Arduino 環境就像大多數編程平台一樣可以使用類庫。庫可以為程序提供額外的功能,例如:使用硬件或操作數據。IDE可以安裝很多庫,當然你也可以下載或者創建你自己的庫。

程序中使用庫,從Sketch > Import Library中添加庫。



標準庫

- EEPROM - 讀寫「永久」儲存
- Ethernet - 用於使用Arduino以太網擴展板連接到互聯網
- Firmata - 根據標準串行協議與電腦上的應用程序進行通信
- GSM - 用於使用GSM擴展板連接到 GSM/GRPS 網絡
- LiguidCrystal - 控制液晶顯示屏(LCD)
- SD - 用於讀寫SD卡
- Servo - 用於控制伺服電機(舵機)
- SPI - 用於與使用串行外圍接口(SPI)總線的設備進行通信
- SoftwareSerial - 使用任何數字引腳進行串行通信( 1.0版本以後,整合了Mikal Hart的NewSoftSerial 庫作為 SoftwareSerial庫)
- Stepper - 用戶控制步進電機
- TFT - 用於在TFT屏幕上繪製文本、圖像及形狀
- WiFi - 用於使用WiFi擴展板連接到網絡
- Wire - 雙總線接口 (TWI/I2C) 用於設備或傳感器通過網絡發送、接收數據


Due Only Libraries

- Audio - Play audio files from a SD card.
- Scheduler - Manage multiple non-blocking tasks.


Due and Zero Libraries

- USBHost - Communicate with USB peripherals like mice and keyboards.


Esplora Only Library

- Esplora - this library enable you to easily access to various sensors and actuators mounted on the Esplora board.


Arduino Robot Library

- Robot - this library enables easy access to the functions of the Arduino Robot


Arduino Yún Bridge Library

- Bridge Library - Enables communication between the Linux processor and the Arduino on the Yún.


USB Libraries (Leonardo, Micro, Due, Zero and Esplora)

- Keyboard - Send keystrokes to an attached computer.
- Mouse - Control cursor movement on a connected computer.



其他庫(第三方庫)

如果你使用下面的庫,你需要先安裝它。當然你還可以編寫自己的庫文件

通信(網絡和協議):

- RFID庫 - RFID 射頻模塊庫
- PS2 - PS2 Joystick library
- Json - JSON library
- Messenger - for processing text-based messages from the computer
- NewSoftSerial - an improved version of the SoftwareSerial library
- OneWire - control devices (from Dallas Semiconductor) that use the One Wire protocol.
- PS2Keyboard - read characters from a PS2 keyboard.
- Simple Message System - send messages between Arduino and the computer
- SSerial2Mobile - send text messages or emails using a cell phone (via AT commands over software serial)
- Webduino - extensible web server library (for use with the Arduino Ethernet Shield)
- X10 - Sending X10 signals over AC power lines
- XBee - for communicating with XBees in API mode
- SerialControl - Control cursor movement on a connected computer.


傳感器:

- Capacitive Sensing - turn two or more pins into capacitive sensors
- Debounce - for reading noisy digital inputs (e.g. from buttons)


顯示器和LED:

- Nokia 5110庫 - drive 5110 liquid crystal display
- u8glib
- u8g2
- Adafruit_SSD1306
- Adafruit_GFX
- Lixie


音頻和波形:

- FFT


電機和PWM:


存儲Flash:

- SPIFlash


時間:

- RTC_DS1307_DS3231


實用工具庫:



返回首頁

歡迎加入群聊:技術交流群

原文出處:Arduino官網

更多建議和問題歡迎反饋至 YFRobot論壇