TA的每日心情 | 慵懒 2016-10-17 12:07 |
---|
签到天数: 306 天 连续签到: 1 天 [LV.8]以坛为家I
|
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 ,如下: - /*
- Blink
- Turns on an LED on for one second, then off for one second, repeatedly.
- Most Arduinos have an on-board LED you can control. On the Uno and
- Leonardo, it is attached to digital pin 13. If you're unsure what
- pin the on-board LED is connected to on your Arduino model, check
- the documentation at http://www.arduino.cc
- This example code is in the public domain.
- modified 8 May 2014
- by Scott Fitzgerald
- */
- // the setup function runs once when you press reset or power the board
- void setup() {
- // initialize digital pin 13 as an output.
- pinMode(13, OUTPUT);
- }
- // the loop function runs over and over again forever
- void loop() {
- digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
- delay(200); // wait for a second
- digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
- delay(200); // wait for a second
- }
复制代码下载即可看到LED闪烁。
|
|