“Ethernet库”的版本间的差异
(以“ {| border="0" cellpadding="10" width="100%" |- |width="30%" valign="top" align="left"| The SD library allows for reading from and writing to SD cards, e.g. on the...”为内容创建页面) |
|||
第4行: | 第4行: | ||
|- | |- | ||
|width="30%" valign="top" align="left"| | |width="30%" valign="top" align="left"| | ||
+ | With the Arduino Ethernet Shield, this library allows an Arduino board to connect to the internet. It can serve as either a server accepting incoming connections or a client making outgoing ones. The library supports up to four concurrent connection (incoming or outgoing or a combination). | ||
− | + | Arduino communicates with the shield using the SPI bus. This is on digital pins 11, 12, and 13 on the Uno and pins 50, 51, and 52 on the Mega. On both boards, pin 10 is used as SS. On the Mega, the hardware SS pin, 53, is not used to select the W5100, but it must be kept as an output or the SPI interface won't work. | |
− | |||
− | + | <font color="orange" size="+2">'''Examples'''</font><br> | |
− | |||
− | + | UDPSendReceiveString: Send and receive text strings via UDP. | |
− | + | UdpNtpClient: Query a Network Time Protocol (NTP) server using UDP. | |
+ | DnsWebClient: DNS and DHCP-based Web client. | ||
+ | DhcpChatServer: A simple DHCP Chat Server | ||
+ | DhcpAddressPrinter: Get an IP address via DHCP and print it out | ||
+ | TelnetClient: A simple Telnet client | ||
− | + | :-[[ ChatServer]]: set up a simple chat server. | |
− | + | :-[[ WebClient]]: make a HTTP request. | |
− | + | :-[[ WebClientRepeating]]: Make repeated HTTP requests. | |
+ | :-[[ WebServer]]: host a simple HTML page that displays analog sensor values. | ||
− | + | :-[[ BarometricPressureWebServer]]: outputs the values from a barometric pressure sensor as a web page. | |
− | + | :-[[ UDPSendReceiveString]]: Send and receive text strings via UDP. | |
− | :-[[ | + | :-[[ UdpNtpClient]]: Query a Network Time Protocol (NTP) server using UDP. |
− | :-[[ | + | :-[[ DnsWebClient]]: DNS and DHCP-based Web client. |
− | :-[[ | + | :-[[ DhcpChatServer]]: A simple DHCP Chat Server |
− | :-[[ | + | :-[[ DhcpAddressPrinter]]: Get an IP address via DHCP and print it out |
− | :-[[ | + | :-[[ TelnetClient]]: A simple Telnet client |
|width="10%" valign="top" align="left"| | |width="10%" valign="top" align="left"| | ||
第53行: | 第57行: | ||
:-[[SD:mkdir()| mkdir()]] | :-[[SD:mkdir()| mkdir()]] | ||
− | + | <br><br> | |
+ | <font color="orange" size="+2">'''File class'''</font><br> | ||
− | :-[[SD: | + | '''The File class allows for reading from and writing to individual files on the SD card.''' |
+ | |||
+ | :-[[SD:available()| available()]] | ||
− | :-[[SD: | + | |
+ | <br><br> | ||
+ | <font color="orange" size="+2">'''File class'''</font><br> | ||
+ | |||
+ | '''The File class allows for reading from and writing to individual files on the SD card.''' | ||
+ | |||
+ | :-[[SD:available()| available()]] | ||
+ | |||
+ | :-[[SD:close()| close()]] | ||
+ | |||
+ | :-[[SD:flush()| flush()]] | ||
+ | |||
+ | :-[[SD:peek()| peek()]] | ||
+ | |||
+ | :-[[SD:position()| position()]] | ||
+ | |||
+ | :-[[SD:print()| print]] | ||
+ | |||
+ | :-[[SD:println()| println()]] | ||
<br><br> | <br><br> | ||
第88行: | 第113行: | ||
:-[[SD:isDirectory()| isDirectory()]] | :-[[SD:isDirectory()| isDirectory()]] | ||
− | |||
− | :-[[SD: | + | <br> |
+ | <font color="orange" size="+2">'''SD Class'''</font><br> | ||
+ | |||
+ | '''The SD class provides functions for accessing the SD card and manipulating its files and directories.''' | ||
+ | |||
+ | :-[[SD:begin()| begin()]] | ||
+ | |||
+ | :-[[SD:exists()| exists()]] | ||
+ | |||
+ | :-[[SD:mkdir()| mkdir()]] | ||
+ | |||
+ | :-[[SD:open()| open()]] | ||
+ | |||
+ | :-[[SD:remove()| remove()]] | ||
+ | |||
+ | :-[[SD:rmdir()| rmdir()]] | ||
+ | |||
+ | :-[[SD:mkdir()| mkdir()]] | ||
+ | |||
+ | :-[[SD:open()| open()]] | ||
+ | |||
+ | :-[[SD:remove()| remove()]] | ||
+ | |||
+ | :-[[SD:rmdir()| rmdir()]] | ||
|width="10%" valign="top" align="left"| | |width="10%" valign="top" align="left"| |
2015年7月21日 (二) 09:32的版本
With the Arduino Ethernet Shield, this library allows an Arduino board to connect to the internet. It can serve as either a server accepting incoming connections or a client making outgoing ones. The library supports up to four concurrent connection (incoming or outgoing or a combination). Arduino communicates with the shield using the SPI bus. This is on digital pins 11, 12, and 13 on the Uno and pins 50, 51, and 52 on the Mega. On both boards, pin 10 is used as SS. On the Mega, the hardware SS pin, 53, is not used to select the W5100, but it must be kept as an output or the SPI interface won't work.
|
SD Class The SD class provides functions for accessing the SD card and manipulating its files and directories.
The File class allows for reading from and writing to individual files on the SD card.
The File class allows for reading from and writing to individual files on the SD card.
The File class allows for reading from and writing to individual files on the SD card.
The SD class provides functions for accessing the SD card and manipulating its files and directories.
|
更多建议和问题欢迎反馈至 YFRobot论坛