Arduino库

来自YFRobotwiki
2016年12月23日 (五) 13:24Allblue讨论 | 贡献的版本

跳转至: 导航搜索

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
- Adafruit_SSD1306
- Adafruit_GFX


音频和波形:



电机和PWM:


存储Flash:

- SPIFlash


时间:

- RTC_DS1307_DS3231


实用工具库:



返回首页

原文出处:Arduino官网

更多建议和问题欢迎反馈至 YFRobot论坛