看到@jobs大神的前期吃螃蟹精神
Trouble with Arduino IDE v1.6.8
和
心里不免开始嘀咕,这玩意到底咋玩?
那下最新的1.6.9试试,
选定开发板 wifire和com口,牢记在电脑端com2口需要设置为115200的速度,这样数据才能传输。
刚开始由于没有注意到这些,电脑端选择了9600的速度,程序不能下载。
唯一遗憾的是在arduino开发环境右下角出现了乱码,经过试验,不耽误程序的下载。
首先选择一个blink来试验。
具体程序如下
/* 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(1000); // wait for a second digitalWrite(13, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }
首先点击√位置,验证,相当于编译,完成后会提示
然后点击上传按钮进行上传
成功后会显示如下内容
在程序上传过程中
标号27位置的led5 6会交替闪烁,标号11位置的led1会快速闪烁,led2一直亮直至程序下载完成。
开发环境连接如下图