极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9245|回复: 3

arduino学习求助

[复制链接]
发表于 2012-11-30 20:16:47 | 显示全部楼层 |阅读模式
刚开始学习问的问题可能有点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);为什么没有返回?
回复

使用道具 举报

发表于 2012-11-30 20:27:45 | 显示全部楼层
貌似只是设置了网卡,连ping都没有实现,要返回干嘛?
回复 支持 反对

使用道具 举报

发表于 2012-11-30 20:32:22 | 显示全部楼层
你这个只是设置了mac地址和ip地址。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-12-2 19:45:08 | 显示全部楼层
ttyp 发表于 2012-11-30 20:27
貌似只是设置了网卡,连ping都没有实现,要返回干嘛?

谢谢~~加长!
回复 支持 反对

使用道具 举报

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

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-5-29 08:06 , Processed in 0.040648 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

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