“Arduino库”的版本间的差异

来自YFRobotwiki
跳转至: 导航搜索
第7行: 第7行:
  
 
'''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.'''
 
'''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="orange" >'''Standard Libraries'''</font>
 
  
-[[if(条件判断语句) 和 比较运算符 | if ]]
+
<font color="darkcyan" size="+1" >'''Standard Libraries'''</font>
  
-[[ if...else]]
+
-[[ EEPROM]] - reading and writing to "permanent" storage
  
-[[ for]]
+
-[[ Ethernet]] - for connecting to the internet using the Arduino Ethernet Shield
  
-[[switch case]]
+
-[[ Firmata]] - for communicating with applications on the computer using a standard serial protocol.
  
-[[while]]
+
-[[ GSM]] - for connecting to a GSM/GRPS network with the GSM shield.
  
-[[do...while]]
+
-[[ LiguidCrystal]] - for controlling liquid crystal displays (LCDs)
  
*[[break]]
+
-[[ SD]] - for reading and writing SD cards
*[[continue]]
+
*[[return]]
+
*[[goto]]
+
<font color="orange" >'''扩展语法'''</font>
+
*[[; (分号)]]
+
*[[大括号|{} (大括号)]]
+
*[[注释| //  (单行注释) ]]
+
*[[注释| /**/(多行注释)]]
+
*[[ define|#define ]]
+
*[[ include |#include ]]
+
  
 +
-[[ Servo]] - for controlling servo motors
 +
 +
-[[ SPI]] - for communicating with devices using the Serial Peripheral Interface (SPI) Bus
 +
 +
-[[ SoftwareSerial]] - for serial communication on any digital pins. Version 1.0 and later of Arduino incorporate Mikal Hart's NewSoftSerial library as SoftwareSerial.
 +
 +
-[[ Stepper]] - for controlling stepper motors
 +
 +
-[[ TFT]] - for drawing text , images, and shapes on the Arduino TFT screen
 +
 +
-[[ WiFi]] - for connecting to the internet using the Arduino WiFi shield
 +
 +
-[[ Wire]] - Two Wire Interface (TWI/I2C) for sending and receiving data over a net of devices or sensors.
 +
 +
The Matrix and Sprite libraries are no longer part of the core distribution.
 
|}
 
|}
 +
 +
<font color="darkcyan" size="+1" >'''Due Only Libraries'''</font>
 +
 +
-[[ Audio]] - Play audio files from a SD card.
 +
 +
-[[ Scheduler]] - Manage multiple non-blocking tasks.
 +
 +
-[[ USBHost]] - Communicate with USB peripherals like mice and keyboards.
 +
 +
|}
 +
 +
 
----
 
----
 
[[首页|返回首页]]
 
[[首页|返回首页]]

2015年7月3日 (五) 17:33的版本

Arduino库官方页面

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.




Standard Libraries

- EEPROM - reading and writing to "permanent" storage

- Ethernet - for connecting to the internet using the Arduino Ethernet Shield

- Firmata - for communicating with applications on the computer using a standard serial protocol.

- GSM - for connecting to a GSM/GRPS network with the GSM shield.

- LiguidCrystal - for controlling liquid crystal displays (LCDs)

- SD - for reading and writing SD cards

- Servo - for controlling servo motors

- SPI - for communicating with devices using the Serial Peripheral Interface (SPI) Bus

- SoftwareSerial - for serial communication on any digital pins. Version 1.0 and later of Arduino incorporate Mikal Hart's NewSoftSerial library as SoftwareSerial.

- Stepper - for controlling stepper motors

- TFT - for drawing text , images, and shapes on the Arduino TFT screen

- WiFi - for connecting to the internet using the Arduino WiFi shield

- Wire - Two Wire Interface (TWI/I2C) for sending and receiving data over a net of devices or sensors.

The Matrix and Sprite libraries are no longer part of the core distribution.

Due Only Libraries

- Audio - Play audio files from a SD card.

- Scheduler - Manage multiple non-blocking tasks.

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

|}



返回首页

原文出处:Arduino官网

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