2回答

0收藏

[原创] 1、LinkIt ONE Blik LED

#拆解/开源硬件 #拆解/开源硬件 2912 人阅读 | 2 人回复 | 2016-03-24



LinkIt ONE是针对可穿戴电子和物联网推出的一款开源、高性能的8合1无线开发板,基于世界领先的可穿戴SOC - 联发科Aster(MT2502A)处理器。 LinkIt ONE集成了高性能的Wi-Fi(MT5931)和GPS(MT3332)x芯片。同时,LinkIt ONE提供了兼容Arduino UNO的接口可以很容易的介入各种Shield及传感。

关于LinkIt ONE 网站已经有了一篇帖子评测,这里就不再介绍了。

LinkIt ONE 可以查看官方的介绍(http://www.seeedstudio.com/wiki/index.php?title=LinkIt_ONE%E5%BC%80%E5%8F%91%E6%9D%BF&uselang=zh)

本文主要是在MAC搭建开发环境,Blink LED。

本文使用的是  arduino 1.6.6  



一、首先去官网(arduino.cc)下载arduino 1.6.6

二、安装驱动
点击下载
(http://download.labs.mediatek.com/mediatek_linkit_os-x-com-port-driver.zip)

三、下载 LinkIt ONE SDK
  打开arduino  ,选择 菜单栏,然后 偏好设置,
  在 Additional Boards Manager URLs 输入
  http://download.labs.mediatek.com/package_mtk_linkit_index.json
在Arduino的  Tools ->  Board -> Boards Manager   中选择 LinkIt ONE  安装即可。

四、选择串口下载



五,新建demo ,如下:
  1. /*
  2.   Blink
  3.   Turns on an LED on for one second, then off for one second, repeatedly.

  4.   Most Arduinos have an on-board LED you can control. On the Uno and
  5.   Leonardo, it is attached to digital pin 13. If you're unsure what
  6.   pin the on-board LED is connected to on your Arduino model, check
  7.   the documentation at http://www.arduino.cc

  8.   This example code is in the public domain.

  9.   modified 8 May 2014
  10.   by Scott Fitzgerald
  11. */


  12. // the setup function runs once when you press reset or power the board
  13. void setup() {
  14.   // initialize digital pin 13 as an output.
  15.   pinMode(13, OUTPUT);
  16. }

  17. // the loop function runs over and over again forever
  18. void loop() {
  19.   digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  20.   delay(200);              // wait for a second
  21.   digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  22.   delay(200);              // wait for a second
  23. }
复制代码
下载即可看到LED闪烁。



分享到:
回复

使用道具 举报

回答|共 2 个

倒序浏览

沙发

jwdxu2009

发表于 2016-3-24 22:47:14 | 只看该作者

下载下来,参考和学习
板凳

liunian__92

发表于 2016-3-25 08:58:58 | 只看该作者

jwdxu2009 发表于 2016-3-24 22:47
下载下来,参考和学习

直接去看官方的吧,,不过是中文的,,官方的讲的比较详细。。
您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /2 下一条