小R科技-WIFI机器人网·机器人创意工作室

 找回密码
 立即注册
查看: 9204|回复: 4

Arduino 库使用手册

[复制链接]
发表于 2015-6-25 10:43:17 | 显示全部楼层 |阅读模式
出处:http://wiki.geek-workshop.com/doku.php?id=arduino:libraries类库
程序使用类库提供额外的功能,如与硬件协同工作或操控数据等。在程序中使用类库,可以点击菜单中的“程序 > 导入库”进行操作。

标准类库
  • EEPROM - 对“永久存储器”进行读和写
  • Ethernet - 用于通过 Arduino 以太网扩展板连接到互联网
  • Firmata - 与电脑上应用程序通信的标准串行协议。
  • LiquidCrystal - 控制液晶显示屏(LCD)
  • SD - 对 SD 卡进行读写操作
  • Servo - 控制伺服电机
  • SPI - 与使用的串行外设接口(SPI)总线的设备进行通信
  • SoftwareSerial - 使用任何数字引脚进行串行通信
  • Stepper - 控制步进电机
  • WiFi - 用于通过 Aduino 的 WiFi 扩展板连接到互联网
  • Wire - 双总线接口(TWI/I2C)通过网络对设备或者传感器发送和接收数据。
  • PWM Frequency Library - 自定义PWM频率

Matrix 和 Sprite 类库已不包含与标准类库中。

USB 类库(适用于 Leonardo、Micro、Due、Esplora)
  • 键盘 - 向已连接的电脑发送按键指令。
  • 鼠标 - 控制已连接的电脑中的鼠标光标。


仅适用于 Due 的类库
  • 音频 - 播放 SD 卡中的音频文件。
  • Scheduler - Manage multiple non-blocking tasks.
  • USB 主控 - 通过 USB 与鼠标和键盘等外设进行通讯。


仅适用于 Esplora 的类库
  • Esplora - 该类库允许您方便的访问安装在 Esplora 上面的传感器和扩展板。


第三方类库
如果您想使用这些类库,您需要先进行安装。查看该介绍获得更多信息。这还有一篇自行编写类库的教程供您参考。
通讯(网络和协议):
  • 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 - Remote control other Arduinos over a serial connection
  • IRremote - A Multi-Protocol Infrared Remote Library for the Arduino

传感器:
  • Capacitive Sensing - turn two or more pins into capacitive sensors
  • Debounce - for reading noisy digital inputs (e.g. from buttons)
  • DS3231 - 一个时钟芯片
  • AT24C32 - IIC接口的EEPROM

液晶显示器和显示设备:
  • GFX - base class with standard graphics routines (by Adafruit Industries)
  • GLCD - graphics routines for LCD based on the KS0108 or equivalent chipset.
  • Improved LCD library fixes LCD initialization bugs in official Arduino LCD library
  • LedControl - for controlling LED matrices or seven-segment displays with a MAX7221 or MAX7219.
  • LedControl - an alternative to the Matrix library for driving multiple LEDs with Maxim chips.
  • LedDisplay - control of a HCMS-29xx scrolling LED display.
  • Matrix - Basic LED Matrix display manipulation library
  • PCD8544 - for the LCD controller on Nokia 55100-like displays (by Adafruit Industries)
  • Sprite - Basic image sprite manipulation library for use in animations with an LED matrix
  • ST7735 - for the LCD controller on a 1.8“, 128×160 TFT screen (by Adafruit Industries)

音频和声波:
  • FFT - frequency analysis of audio or other analog signals
  • Tone - generate audio frequency square waves in the background on any microcontroller pin

电机和脉宽调制:
  • TLC5940 - 16 channel 12 bit PWM controller.
  • BOXZ - 互动机器人控制通用库。

计时器:
  • DateTime - 用于追踪当前日期和时间的库,无需外部硬件
  • Metro - 帮助你以规定的时间间隔执行动作
  • MsTimer2 - 使用timer 2中断来每N毫秒触发一个动作
  • Timer - 利用millis()函数来模拟多线程

实用工具:
  • PString - a lightweight class for printing to buffers
  • Streaming - a method to simplify print statements



回复

使用道具 举报

发表于 2015-6-25 12:59:13 | 显示全部楼层
{:soso_e179:}
回复 支持 反对

使用道具 举报

发表于 2015-6-29 10:12:15 | 显示全部楼层
{:soso_e179:}
回复 支持 反对

使用道具 举报

发表于 2015-7-13 16:50:01 | 显示全部楼层
这个好,有空可以慢慢研究
回复 支持 反对

使用道具 举报

发表于 2015-7-21 12:07:38 | 显示全部楼层
帅啊,再出类似精品!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

新品特惠推荐上一条 /2 下一条

QQ|QQ技术咨询1|QQ技术咨询2|商务合作微信1:xiaorgeek001|商务合作微信2:XiaoRGEEK|诚聘英才|Archiver|手机版|小R科技-WIFI机器人网·机器人创意工作室 ( 粤ICP备15000788号-6 )

GMT+8, 2024-5-5 04:41 , Processed in 1.080843 second(s), 21 queries .

Powered by XiaoR GEEK X3.4

© 2014-2021 XiaoR GEEK

快速回复 返回顶部 返回列表