“Arduino库”的版本间的差异

来自YFRobotwiki
跳转至: 导航搜索
 
(未显示2个用户的20个中间版本)
第1行: 第1行:
=== [https://www.arduino.cc/en/Reference/Libraries Arduino 官方 页面] ===
+
=== [https://www.arduino.cc/en/Reference/Libraries Arduino官方 ] ===
  
{| border="0" cellpadding="10" width="100%"
 
|-
 
|width="100%" valign="top" align="left"|
 
<font color="olivedrab" size="+2">'''库'''</font>
 
  
'''The Arduino environment can be extended through the use of libraries, just like most programming platforms. Libraries provide extra functionality for use in sketches, e.g. working with hardware or manipulating data. A number of libraries come installed with the IDE, but you can also download or create your own. See these instructions for details on installing libraries. There's also a tutorial on writing your own libraries.'''
+
<font color="olivedrab" size="+2">'''库'''</font><br>
 +
 
 +
 
 +
'''Arduino 环境就像大多数编程平台一样可以使用类库。库可以为程序提供额外的功能,例如:使用硬件或操作数据。IDE可以安装很多库,当然你也可以下载或者创建你自己的库。'''<br>
 +
 
 +
程序中使用库,从'''Sketch > Import Library''' 中添加库。
 +
 
  
  
 
----
 
----
  
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="50%" valign="top" align="left"|
  
<font color="darkcyan" size="+1" >'''Standard Libraries'''</font>
+
<font color="darkcyan" size="+1" >''' 标准库'''</font>
  
-[[ EEPROM]] - reading and writing to "permanent" storage
+
:-[[EEPROM库| EEPROM]] - 读写“永久”储存
  
-[[ Ethernet]] - for connecting to the internet using the Arduino Ethernet Shield
+
:-[[Ethernet库| Ethernet]] - 用于使用Arduino以太网扩展板连接到互联网
  
-[[ Firmata]] - for communicating with applications on the computer using a standard serial protocol.
+
:-[[Firmata库| Firmata]] - 根据标准串行协议与电脑上的应用程序进行通信
  
-[[ GSM]] - for connecting to a GSM/GRPS network with the GSM shield.
+
:-[[GSM库| GSM]] - 用于使用GSM扩展板连接到 GSM/GRPS 网络
  
-[[ LiguidCrystal]] - for controlling liquid crystal displays (LCDs)
+
:-[[LiguidCrystal库| LiguidCrystal]] - 控制液晶显示屏(LCD)
  
-[[ SD]] - for reading and writing SD cards
+
:-[[SD库| SD]] - 用于读写SD卡
  
-[[ Servo]] - for controlling servo motors
+
:-[[Servo库| Servo]] - 用于控制伺服电机(舵机)
  
-[[ SPI]] - for communicating with devices using the Serial Peripheral Interface (SPI) Bus
+
:-[[SPI库| SPI]] - 用于与使用串行外围接口(SPI)总线的设备进行通信
  
-[[ SoftwareSerial]] - for serial communication on any digital pins. Version 1.0 and later of Arduino incorporate Mikal Hart's NewSoftSerial library as SoftwareSerial.
+
:-[[SoftwareSerial库| SoftwareSerial]] -  使用任何数字引脚进行串行通信( 1.0 版本以后,整合了Mikal Hart 的NewSoftSerial 库作为 SoftwareSerial 库)
  
-[[ Stepper]] - for controlling stepper motors
+
:-[[Stepper库| Stepper]] - 用户控制步进电机
  
-[[ TFT]] - for drawing text , images, and shapes on the Arduino TFT screen
+
:-[[TFT库| TFT]] - 用于在TFT屏幕上绘制文本、图像及形状
  
-[[ WiFi]] - for connecting to the internet using the Arduino WiFi shield
+
:-[[WiFi库| WiFi]] - 用于使用WiFi扩展板连接到网络
  
-[[ Wire]] - Two Wire Interface (TWI/I2C) for sending and receiving data over a net of devices or sensors.
+
:-[[Wire库| Wire]] - 双总线接口 (TWI/I2C) 用于设备或传感器通过网络发送、接收数据
  
The Matrix and Sprite libraries are no longer part of the core distribution.
 
|}
 
  
 
<font color="darkcyan" size="+1" >'''Due Only Libraries'''</font>
 
<font color="darkcyan" size="+1" >'''Due Only Libraries'''</font>
  
-[[ Audio]] - Play audio files from a SD card.
+
:-[[Audio库| Audio]] - Play audio files from a SD card.
  
-[[ Scheduler]] - Manage multiple non-blocking tasks.
+
:-[[Scheduler库| Scheduler]] - Manage multiple non-blocking tasks.
  
-[[ USBHost]] - Communicate with USB peripherals like mice and keyboards.
+
 
 +
<font color="darkcyan" size="+1" >'''Due and Zero Libraries'''</font>
 +
 
 +
:-[[USBHost库| USBHost]] - Communicate with USB peripherals like mice and keyboards.
 +
 
 +
 
 +
<font color="darkcyan" size="+1" >'''Esplora Only Library'''</font>
 +
 
 +
:-[[Esplora库| Esplora]] - this library enable you to easily access to various sensors and actuators mounted on the Esplora board.
 +
 
 +
 
 +
<font color="darkcyan" size="+1" >'''Arduino Robot Library'''</font>
 +
 
 +
:-[[Robot库| Robot]] - this library enables easy access to the functions of the Arduino Robot
 +
 
 +
 
 +
<font color="darkcyan" size="+1" >'''Arduino Yún Bridge Library'''</font>
 +
 
 +
:-[[Bridge库| Bridge Library]] - Enables communication between the Linux processor and the Arduino on the Yún.
 +
 
 +
 
 +
<font color="darkcyan" size="+1" >'''USB Libraries (Leonardo, Micro, Due, Zero and Esplora)'''</font>
 +
 
 +
:-[[Keyboard库| Keyboard ]] - Send keystrokes to an attached computer.
 +
 
 +
:-[[Mouse库| Mouse ]] - Control cursor movement on a connected computer.
 +
 
 +
 
 +
 
 +
 
 +
|width="50%" valign="top" align="left"|
 +
 
 +
<font color="darkcyan" size="+1" >'''其他库(第三方库)'''</font>
 +
 
 +
如果你使用下面的库,你需要先安装它。当然你还可以[http://www.yfrobot.com/thread-2260-1-1.html 编写自己的库文件]。
 +
 
 +
<font color="lightseagreen" >'''通信(网络和协议):'''</font>
 +
 
 +
:- [http://www.yfrobot.com/thread-2377-1-1.html RFID库] - RFID 射频模块库
 +
 
 +
:-[[PS2库 | PS2]] - PS2 Joystick library
 +
 
 +
:-[[Json库 | Json]] - JSON library
 +
 
 +
:-[[Messenger库| Messenger]] - for processing text-based messages from the computer
 +
 
 +
:-[[NewSoftSerial库| NewSoftSerial]] - an improved version of the SoftwareSerial library
 +
 
 +
:-[[OneWire库| OneWire]] - control devices (from Dallas Semiconductor) that use the One Wire protocol.
 +
 
 +
:-[[PS2Keyboard库| PS2Keyboard ]] - read characters from a PS2 keyboard.
 +
 
 +
:-[[Simple Message System库| Simple Message System]] - send messages between Arduino and the computer
 +
 
 +
:-[[SSerial2Mobile库| SSerial2Mobile ]] - send text messages or emails using a cell phone (via AT commands over software serial)
 +
 
 +
:-[[Webduino库| Webduino ]] - extensible web server library (for use with the Arduino Ethernet Shield)
 +
 
 +
:-[[X10库| X10 ]] - Sending X10 signals over AC power lines
 +
 
 +
:-[[XBee库| XBee ]] - for communicating with XBees in API mode
 +
 
 +
:-[[SerialControl库| SerialControl ]] - Control cursor movement on a connected computer.
 +
 
 +
 
 +
<font color="lightseagreen" >'''传感器:'''</font>
 +
 
 +
:-[[Capacitive Sensing库| Capacitive Sensing]] - turn two or more pins into capacitive sensors
 +
 
 +
:-[[Debounce库| Debounce ]] - for reading noisy digital inputs (e.g. from buttons)
 +
 
 +
 
 +
<font color="lightseagreen" >'''显示器和LED:'''</font>
 +
 
 +
:- [http://www.yfrobot.com/thread-2414-1-1.html Nokia 5110库] - drive 5110 liquid crystal display
 +
 
 +
:-[[u8glib库 | u8glib ]]
 +
 
 +
:-[[u8g2库 | u8g2 ]]
 +
 
 +
:-[[Adafruit_SSD1306库 | Adafruit_SSD1306 ]]
 +
 
 +
:-[[Adafruit_GFX库 | Adafruit_GFX ]]
 +
 
 +
:-[[Lixie库 | Lixie ]]
 +
 
 +
 
 +
<font color="lightseagreen" >'''音频和波形:'''</font>
 +
 
 +
:-[[Arduino_FFT库 | FFT ]]
 +
 
 +
 
 +
<font color="lightseagreen" >'''电机和PWM:'''</font>
 +
 
 +
 
 +
<font color="lightseagreen" >'''存储Flash:'''</font>
 +
 
 +
:-[[SPIFlash库 | SPIFlash]]
 +
 
 +
 
 +
<font color="lightseagreen" >'''时间:'''</font>
 +
 
 +
:-[[RTC_DS1307_DS3231库 | RTC_DS1307_DS3231 ]]
 +
 
 +
 
 +
<font color="lightseagreen" >'''实用工具库:'''</font>
  
 
|}
 
|}
第56行: 第164行:
 
----
 
----
 
[[首页|返回首页]]
 
[[首页|返回首页]]
 +
 +
欢迎加入群聊:[https://jq.qq.com/?_wv=1027&k=466mOjv 技术交流群]
  
 
 原文出处:[http://www.arduino.cc/en/Reference Arduino官网]
 
 原文出处:[http://www.arduino.cc/en/Reference Arduino官网]
  
 
 更多建议和问题欢迎反馈至 [http://www.yfrobot.com YFRobot论坛]
 
 更多建议和问题欢迎反馈至 [http://www.yfrobot.com YFRobot论坛]

2017年4月18日 (二) 10:29的最后版本

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论坛