<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ardublock</title>
	<atom:link href="http://ardublock.heqichen.cn/blog/zh/feed/" rel="self" type="application/rss+xml" />
	<link>http://ardublock.heqichen.cn/blog/zh</link>
	<description>简单实用的Arduino图形化编程工具</description>
	<lastBuildDate>Fri, 11 Dec 2015 09:18:11 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.2</generator>
	<item>
		<title>ArduBlock 色彩风格</title>
		<link>http://ardublock.heqichen.cn/blog/zh/ardublock-color-style/</link>
		<comments>http://ardublock.heqichen.cn/blog/zh/ardublock-color-style/#comments</comments>
		<pubDate>Fri, 11 Dec 2015 09:17:12 +0000</pubDate>
		<dc:creator><![CDATA[heqichen]]></dc:creator>
				<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://ardublock.heqichen.cn/blog/?p=111</guid>
		<description><![CDATA[&#160; 新设计了两种颜色风格 1. 国画色系： 2. 蓝色系： &#160; 哪种更好呢？ 15,674 [&#8230;]<br/><a href="http://ardublock.heqichen.cn/blog/zh/ardublock-color-style/" class="more-link" >Continue reading...</a>]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<p>新设计了两种颜色风格</p>
<p>1. 国画色系：<br /><a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/12/color.png"><img class="aligncenter size-large wp-image-113" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/12/color-1024x760.png" alt="color" width="615" height="456" /></a></p>
<p>2. 蓝色系：<br /><a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/12/blue.png"><img class="aligncenter size-large wp-image-112" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/12/blue-1024x760.png" alt="blue" width="615" height="456" /></a></p>
<p>&nbsp;</p>
<p>哪种更好呢？
<div class="pvc_clear"></div>
<p class="pvc_stats" element-id="111">15,674&nbsp;total views, 15&nbsp;views today</p>
<div class="pvc_clear"></div>
]]></content:encoded>
			<wfw:commentRss>http://ardublock.heqichen.cn/blog/zh/ardublock-color-style/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>小创客机器人 正式出版上市</title>
		<link>http://ardublock.heqichen.cn/blog/zh/xck-ardublock-tutorial-published/</link>
		<comments>http://ardublock.heqichen.cn/blog/zh/xck-ardublock-tutorial-published/#comments</comments>
		<pubDate>Sun, 13 Sep 2015 19:01:46 +0000</pubDate>
		<dc:creator><![CDATA[heqichen]]></dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://ardublock.heqichen.cn/blog/?p=99</guid>
		<description><![CDATA[恭喜四川袁明宏老师的新书《小创客机器人》正式出版上市！ 《小创客机器人》是全国第一本ArduBlock编程教材 [&#8230;]<br/><a href="http://ardublock.heqichen.cn/blog/zh/xck-ardublock-tutorial-published/" class="more-link" >Continue reading...</a>]]></description>
				<content:encoded><![CDATA[<p>恭喜四川袁明宏老师的新书《小创客机器人》正式出版上市！</p>
<p>《小创客机器人》是全国第一本ArduBlock编程教材</p>
<p>全国第一本创客教育教材、全国第一本ArduBlock编程教材。中小学创客教育必备教程。<br />
目录：</p>
<ul>
<li>第一课：萤火虫</li>
<li>第二课：交通灯</li>
<li>第三课：小闹钟</li>
<li>第四课：怕痛的机器人</li>
<li>第五课：导盲机器人</li>
<li>第六课：声控灯</li>
<li>第七课：超声波报警器</li>
<li>第八课：独眼机器人</li>
<li>第九课：超声波避障机器人</li>
<li>第十课：创意电子琴</li>
<li>第十一课：防跌落机器人</li>
<li>第十二课：跨栏机器人</li>
</ul>
<p>部分插图：<br />
<a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/1.jpg"><img class="aligncenter size-large wp-image-100" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/1-769x1024.jpg" alt="1" width="615" height="819" /></a> <a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/2.jpg"><img class="aligncenter size-large wp-image-101" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/2-769x1024.jpg" alt="2" width="615" height="819" /></a> <a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/3.jpg"><img class="aligncenter size-large wp-image-102" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/3-768x1024.jpg" alt="3" width="615" height="820" /></a> <a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/4.jpg"><img class="aligncenter size-large wp-image-103" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/4-768x1024.jpg" alt="4" width="615" height="820" /></a><br />
怕痛的机器人<br />
<a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/1.jpeg"><img class="aligncenter size-full wp-image-104" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/1.jpeg" alt="1" width="640" height="452" /></a><br />
交通机器人<br />
<a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/2.jpeg"><img class="aligncenter size-large wp-image-105" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/2.jpeg" alt="2" width="615" height="434" /></a></p>
<p>萤火虫 <a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/3.jpeg"><img class="aligncenter size-large wp-image-106" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/3.jpeg" alt="3" width="615" height="434" /></a></p>
<h4>何琪辰为《小创客机器人教程》作序：</h4>
<p>我是一名程序员，这一直是件令人感到骄傲的事情。记忆中是在小学三年级某一天写下了我的第一行BASIC代码，而这只比人类写下的第一行电脑程序晚了不到50年。神奇的计算机程序就是这样迅速和深刻地改变了我和我们所生活的整个世界。</p>
<p>2010年，在上海的一个沙龙活动上我遇到了李大维，他正在筹备中国首家创客空间“新车间”，很快我也就成为了这家创客团体的首批会员。新车间当时还只被称为hackerspace，聚集着一批热衷于自己动手把想法变成现实的“黑客们”，他们用各自的业余时间来新车间一起“玩”。那时，呆头呆脑的虫虫机器人，炫酷的四轴飞行器，“最没有用的机器”，智能捕鼠器等等一系列好玩有趣的创客作品相继出现。在这些创客作品的背后，其实都是Arduino的功劳。由于Arduino在开源硬件上的努力，使得原本深奥难懂的硬件开发，变得简单。只要会使用C语言就可以成为硬件工程师。在越来越多的创客作品诞生的同时，也吸引着不同职业，不同领域，不同想法的大朋友、小朋友来到新车间实现他们的想法。</p>
<p>分享知识是创客们最乐于做的事情，我也指导很多人如何使用Arduino。但是慢慢的发现，Arduino虽然已经去掉了硬件的学习成本，然而编写Arduino程序，也就是C语言成了许多人永远跨不过去的坎。当时被问到最多的问题就是“为什么每一行程序结束要有分号”，“为什么程序里有#include，这有什么作用？”。虽然我一遍又一遍地解释C语言语法后，爱好者们还是会遇到因为漏写分号而无法顺利地编译Arduino代码。这就有了最初希望降低编程难度的想法。</p>
<p>2011年暑假的两个月里，在李大维的支持和帮助下，我完成了第一版ArduBlock代码开发工作，9月ArduBlock第一个版本正式发布。在之后不断完善与改进下，ArduBlock逐渐被人们了解和接受。ArduBlock现已经拥有30种语言的支持，仅从官网下载的次数就超过好几十万。ArduBlock成功帮助人们克服了Arduino上编程代码语法的难关。今天，看到袁明宏老师编写的《创客教育机器人教材》，书用中生动活泼的语言将使用ArduBlock制作Arduino机器人的过程娓娓道来。相信通过不断普及的创客教育，会有更多孩子们成为今天的小创客和未来的大发明家，推动我们社会的进步。 这也同时激励我继续深入对开源硬件编程平台的研究。</p>
<p>袁老师用他的学识、经验和心血编写出这一套书，相信《创客教育机器人教材》将会引领更多青少年朋友探究身边科学，寻找创新想法，实现一个个生活中的小革新和小发明。世上无难事，只要心存创新意识，乐于学习创性技能，每个热爱生活的人都能成为一个了不起的创客，来共建人人创新的社会风尚。</p>
<p>何琪辰<br />
2015年6月27日
<div class="pvc_clear"></div>
<p class="pvc_stats" element-id="99">24,217&nbsp;total views, 10&nbsp;views today</p>
<div class="pvc_clear"></div>
]]></content:encoded>
			<wfw:commentRss>http://ardublock.heqichen.cn/blog/zh/xck-ardublock-tutorial-published/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ArduBlock登上中学科技</title>
		<link>http://ardublock.heqichen.cn/blog/zh/ardublock-on-junior-science/</link>
		<comments>http://ardublock.heqichen.cn/blog/zh/ardublock-on-junior-science/#comments</comments>
		<pubDate>Sun, 13 Sep 2015 18:33:52 +0000</pubDate>
		<dc:creator><![CDATA[heqichen]]></dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://ardublock.heqichen.cn/blog/?p=94</guid>
		<description><![CDATA[&#160; 感谢福建林老师在《中学科技》杂志上发表的《机器人的大脑》，详细介绍了ArduBlock的安装方法 [&#8230;]<br/><a href="http://ardublock.heqichen.cn/blog/zh/ardublock-on-junior-science/" class="more-link" >Continue reading...</a>]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<p>感谢福建林老师在《中学科技》杂志上发表的《机器人的大脑》，详细介绍了ArduBlock的安装方法。<br />
<a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/IMG_20150913_161518.jpg"><img class="aligncenter size-large wp-image-98" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/IMG_20150913_161518-768x1024.jpg" alt="IMG_20150913_161518" width="615" height="820" /></a></p>
<p><a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/IMG_20150913_161619.jpg"><img class="aligncenter size-large wp-image-96" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/IMG_20150913_161619-768x1024.jpg" alt="IMG_20150913_161619" width="615" height="820" /></a><a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/IMG_20150913_161645.jpg"><img class="aligncenter size-large wp-image-97" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/IMG_20150913_161645-768x1024.jpg" alt="IMG_20150913_161645" width="615" height="820" /></a><a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/IMG_20150913_161619.jpg"><br />
</a><a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/IMG_20150913_161645.jpg"><br />
</a><a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/IMG_20150913_161518.jpg"><br />
</a> <a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/09/IMG_20150913_161619.jpg"><br />
</a>
<div class="pvc_clear"></div>
<p class="pvc_stats" element-id="94">6,646&nbsp;total views, 2&nbsp;views today</p>
<div class="pvc_clear"></div>
]]></content:encoded>
			<wfw:commentRss>http://ardublock.heqichen.cn/blog/zh/ardublock-on-junior-science/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ArduBlock 2015-beta 版本发布</title>
		<link>http://ardublock.heqichen.cn/blog/zh/ardublock-2015-beta-released/</link>
		<comments>http://ardublock.heqichen.cn/blog/zh/ardublock-2015-beta-released/#comments</comments>
		<pubDate>Wed, 08 Jul 2015 22:38:23 +0000</pubDate>
		<dc:creator><![CDATA[heqichen]]></dc:creator>
				<category><![CDATA[发布]]></category>

		<guid isPermaLink="false">http://ardublock.heqichen.cn/blog/?p=63</guid>
		<description><![CDATA[ArduBlock 2015-beta 发布啦！ 可以到这个地址下载： DOWNLOAD 百度盘地址 : ht [&#8230;]<br/><a href="http://ardublock.heqichen.cn/blog/zh/ardublock-2015-beta-released/" class="more-link" >Continue reading...</a>]]></description>
				<content:encoded><![CDATA[<p>ArduBlock 2015-beta 发布啦！</p>
<p>可以到这个地址下载： <strong><a href="http://ardublock.heqichen.cn/blog/download/" target="_blank">DOWNLOAD</a></strong></p>
<p>百度盘地址 : <a href="http://pan.baidu.com/s/1kT4AEpD" target="_blank">http://pan.baidu.com/s/1kT4AEpD</a></p>
<h3>更新内容：</h3>
<ol>
<li>在界面上的按钮改为图标</li>
<li>界面上直接显示选择的串口号</li>
<li>界面添加菜单</li>
<li>修正了生成图片只有固定大小的bug</li>
<li>增加内置例子，让学习更简单<br />
<a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/ui.png"><img class="aligncenter  wp-image-67" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/ui.png" alt="ui" width="129" height="96" /></a></li>
<li>解决了中文显示问题，再也不会选不到中文的情况<br />
<a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/chinese.png"><img class="aligncenter  wp-image-68" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/chinese.png" alt="chinese" width="128" height="95" /></a></li>
<li>可以在Arduino中看到ArduBlock的版本号<br />
<a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/show-in-menu.png"><img class="aligncenter  wp-image-64" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/show-in-menu.png" alt="show-in-menu" width="103" height="124" /></a></li>
<li>解决了linux下面难看的文件选择界面<br />
旧版：<a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/ugly.png"><img class="  wp-image-65 alignnone" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/ugly.png" alt="ugly" width="115" height="85" /></a> 新版：<a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/fc-updated.png"><img class="  wp-image-66 alignnone" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/fc-updated.png" alt="fc-updated" width="114" height="85" /><br />
</a></li>
<li>检查更新，有新版本就会有提示<br />
<a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/update.png"><img class="aligncenter  wp-image-69" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/update.png" alt="update" width="127" height="114" /></a></li>
</ol>
<p>可以到这个地址下载： <strong><a href="http://ardublock.heqichen.cn/blog/download/" target="_blank">DOWNLOAD</a></strong>
<div class="pvc_clear"></div>
<p class="pvc_stats" element-id="63">12,481&nbsp;total views, 7&nbsp;views today</p>
<div class="pvc_clear"></div>
]]></content:encoded>
			<wfw:commentRss>http://ardublock.heqichen.cn/blog/zh/ardublock-2015-beta-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2014-beta版本发布</title>
		<link>http://ardublock.heqichen.cn/blog/zh/2014-beta-released/</link>
		<comments>http://ardublock.heqichen.cn/blog/zh/2014-beta-released/#comments</comments>
		<pubDate>Fri, 03 Jul 2015 17:13:27 +0000</pubDate>
		<dc:creator><![CDATA[heqichen]]></dc:creator>
				<category><![CDATA[发布]]></category>

		<guid isPermaLink="false">http://ardublock.heqichen.cn/blog/?p=43</guid>
		<description><![CDATA[从名称可以看到，这仅仅是个旧版本的一次发布，可以从这里下载 http://ardublock.heqichen [&#8230;]<br/><a href="http://ardublock.heqichen.cn/blog/zh/2014-beta-released/" class="more-link" >Continue reading...</a>]]></description>
				<content:encoded><![CDATA[<p>从名称可以看到，这仅仅是个旧版本的一次发布，可以从这里下载</p>
<p><a style="line-height: 1.5;" href="http://ardublock.heqichen.cn/blog/download/" target="_blank">http://ardublock.heqichen.cn/blog/download/</a></p>
<h2>修改</h2>
<p>1. 解决了某次merge requrest中，把windows命名合并导致linux无法开发的错误</p>
<p>2. 修改了版本的拼写错误</p>
<p>3. 与Arduino合并，不用再为安装烦恼了
<div class="pvc_clear"></div>
<p class="pvc_stats" element-id="43">5,727&nbsp;total views, 6&nbsp;views today</p>
<div class="pvc_clear"></div>
]]></content:encoded>
			<wfw:commentRss>http://ardublock.heqichen.cn/blog/zh/2014-beta-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>导入ArduBlock到Eclipse中</title>
		<link>http://ardublock.heqichen.cn/blog/zh/import-ardublock-to-eclipse/</link>
		<comments>http://ardublock.heqichen.cn/blog/zh/import-ardublock-to-eclipse/#comments</comments>
		<pubDate>Thu, 02 Jul 2015 18:45:23 +0000</pubDate>
		<dc:creator><![CDATA[heqichen]]></dc:creator>
				<category><![CDATA[文档]]></category>

		<guid isPermaLink="false">http://ardublock.heqichen.cn/blog/?p=37</guid>
		<description><![CDATA[工具准备 如果需要将ArduBlock导入到Eclipse中，需要一下工具 Git ArduBlock的源代码 [&#8230;]<br/><a href="http://ardublock.heqichen.cn/blog/zh/import-ardublock-to-eclipse/" class="more-link" >Continue reading...</a>]]></description>
				<content:encoded><![CDATA[<h2>工具准备</h2>
<p>如果需要将ArduBlock导入到Eclipse中，需要一下工具</p>
<ol>
<li>Git
<ul>
<li>ArduBlock的源代码托管在GitHub上，可以在GitHub上找到在不同操作系统上安装Git工具的教程: <a href="https://help.github.com/set-up-git-redirect" target="_blank">https://help.github.com/set-up-git-redirect</a></li>
</ul>
</li>
<li>Eclipse
<ul>
<li>当然，要导入Eclipse，那么Eclipse是必需的。可以到Eclipse官网下载：<a href="http://www.eclipse.org/" target="_blank">http://www.eclipse.org/</a></li>
</ul>
</li>
<li>Maven
<ul>
<li>ArduBlock是一个Java开发的工具，我们使用Maven来管理ArduBlock的依赖库。</li>
</ul>
</li>
<li>M2Eclipse
<ul>
<li>这是个可选项。如果需要开发Openblocks的话，可以在Eclipse中安装Maven的插件，可以提高开发的效率。</li>
<li><img class="alignnone  wp-image-26" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/instll-m2e.png" alt="instll-m2e" width="307" height="281" /></li>
</ul>
</li>
</ol>
<h2>准备代码</h2>
<p>ArduBlock依赖于Openblocks。所以需要下载两个项目的源代码。首先到代码管理页面下载源代码，两个项目的地址如下:</p>
<p><a href="https://github.com/heqichen/ardublock.git" target="_blank">https://github.com/heqichen/ardublock.git</a><br />
<a href="https://github.com/heqichen/openblocks.git" target="_blank">https://github.com/heqichen/openblocks.git</a></p>
<p>可以在页面的右侧找到代码克隆的地址。比如，两个项目的地址是 <a href="https://github.com/heqichen/ardublock.git">https://github.com/heqichen/ardublock.git</a>  Openblocks项目的代码克隆地址是 <a href="https://github.com/heqichen/openblocks.git">https://github.com/heqichen/openblocks.git</a></p>
<p>找到两个源代码克隆之地之后，需要在本机圈定一个开发目录，比如，我的开发目录是~/ardublock/。那么现在，可以打开终端/bash/命令行执行命令来下载源代码。</p><pre class="crayon-plain-tag">$ cd ~/ardublock/
$ git clone git@github.com:heqichen/ardublock.git
$ git clone git@github.com:heqichen/openblocks.git</pre><p><span id="more-37"></span></p>
<p>执行这两行命令后，可以看到类似下面的内容</p>
<blockquote><p>Cloning into &#8216;openblocks&#8217;&#8230;<br />
remote: Counting objects: 2166, done.<br />
remote: Total 2166 (delta 0), reused 0 (delta 0), pack-reused 2166<br />
Receiving objects: 100% (2166/2166), 4.20 MiB | 6.00 KiB/s, done.<br />
Resolving deltas: 100% (863/863), done.<br />
Checking connectivity&#8230; done.</p></blockquote>
<p><img class="alignnone size-full wp-image-28" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/git-clone.png" alt="git-clone" width="692" height="127" /></p>
<p>说明已经成功下载了源代码。本机的目录中也出现了两个新的项目文件夹。</p>
<p><img class=" size-full wp-image-27 alignnone" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/git-folder.png" alt="git-folder" width="157" height="67" /></p>
<h2>导入ArduBlock项目到Eclipse</h2>
<p>现在有了源代码，就可以准备将代码导入到Eclipse中。</p>
<p>以下以ArduBlock项目为例，执行下面的命令。</p><pre class="crayon-plain-tag">$ cd ardublock	# go into ardublock folder
$ mvn validate	# downlaod maven packages
$ mvn clean 	#
$ mvn eclipse:clean	# clean eclipse project
$ mvn eclipse:eclipse	# change project to eclipse project</pre><p>执行这些命令，Maven会自动下载ArduBlock所需要的依赖包，并会编译测试。</p>
<p>Maven 的eclipse命令会将目录转换成Eclipse项目，这样就可以直接将项目导入到Eclipse中。如果需要导入Openblocks项目的话，同样的命令也可以在openblocks目录下执行。</p>
<p>打开Eclispe,依次选择<br />
File -&gt; Import -&gt; Gernal -&gt; Existing Projects into Workspace</p>
<p><img class="alignnone  wp-image-29" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/eclipse-inport.png" alt="eclipse-inport" width="351" height="516" /></p>
<p>这样ArduBlock就成功导入到Eclipse中了。但是，导入后可能Eclipse会提示以下的问题。</p>
<p><img class="alignnone size-full wp-image-36" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/06-ardublock-error1.png" alt="06-ardublock-error1" width="342" height="288" /></p>
<p><a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/07-ardublock-error2.png"><img class="alignnone size-large wp-image-35" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/07-ardublock-error2-1024x271.png" alt="07-ardublock-error2" width="615" height="163" /></a></p>
<p>Eclipse会提示ArduBlock找不到Openblocks库，原因是arduBlock依赖于Openblocks，但是openblocks并没有在本地库中。所以需要在本地库中安装openblocks。</p>
<p>有两种方法解决这个问题</p>
<p>一种方法是直接使用Maven来安装Openblocks</p>
<p>在终端/命令行下，进入openblocks目录，并执行以下命令</p><pre class="crayon-plain-tag">$ mvn clean
$ mvn install</pre><p>这些命令后，Maven会编译并在本机安装openblocks.</p>
<p><img class="  wp-image-38 alignnone" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/08.png" alt="08" width="489" height="310" /></p>
<p>看到编译成功后再进入eclipse刷新ardublock项目，就可以看到错误已经消失了。</p>
<p><a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/09-ok.png"><img class="alignnone  wp-image-33" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/09-ok.png" alt="09-ok" width="547" height="398" /></a></p>
<p>另一种方法就是也将Openblocks项目导入到Eclipse，并使用Eclipse的Maven插件来管理ArduBlock和Openblocks之间的依赖关系。</p>
<p>只要在openblocks下也同样执行相关maven命令，将openblocks目录转换成eclipse项目，然后导入到eclipse中。</p>
<p>如果eclipse有maven插件，当openblocks代码修改后，会自动更新ardublock的依赖，如果开发openblocks，这样会很方便。</p>
<p><a href="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/10-ok2.png"><img class="alignnone size-large wp-image-32" src="http://ardublock.heqichen.cn/blog/wp-content/uploads/2015/07/10-ok2-1024x576.png" alt="10-ok2" width="615" height="346" /></a>
<div class="pvc_clear"></div>
<p class="pvc_stats" element-id="37">45,625&nbsp;total views, 11&nbsp;views today</p>
<div class="pvc_clear"></div>
]]></content:encoded>
			<wfw:commentRss>http://ardublock.heqichen.cn/blog/zh/import-ardublock-to-eclipse/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
