arduino学习求助
刚开始学习问的问题可能有点2,见谅#include <SPI.h>
#include <Ethernet.h>
// the media access control (ethernet hardware) address for the shield:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
//the IP address for the shield:
byte ip[] = { 10, 0, 0, 177 };
void setup()
{
Ethernet.begin(mac, ip);
}
void loop () {}
这个程序的作用是不是仅仅是只建立了一个局域网端点,还是有什么其他作用?
Ethernet.begin(mac, ip,dns);为什么没有返回? 貌似只是设置了网卡,连ping都没有实现,要返回干嘛? 你这个只是设置了mac地址和ip地址。。。 ttyp 发表于 2012-11-30 20:27 static/image/common/back.gif
貌似只是设置了网卡,连ping都没有实现,要返回干嘛?
谢谢~~加长!
页:
[1]