[ESP32-Audio-Kit音频开发板测评]四、安装Arduino环境并点灯
<div class='showpostmsg'><p>Arduino环境,有的看官叱之以鼻,总认为是下九流的事,难登大雅之堂。没有么????反正我以前是这么认为。</p><p>但现在我反转了。我觉得我得从新做人了。</p>
<p> </p>
<p>这就同现在的芯片一样,以前我很看不上国产32位,甚至有厂商求我买我都拒了。现在我求他们,他们确说没有货哈!</p>
<p> </p>
<p>我觉得无论什么开发环境,生存最重要。</p>
<p> </p>
<p>1,首先到Arduino.cc,下IDE</p>
<p> 2,安装IDE</p>
<p>3,在第一个下接菜单中,打开首选项加入:</p>
<p>https://dl.espressif.com/dl/package_esp32_index.json</p>
<p>4,然后在工具里,打开开发板的,开发板管理,就可以看到ESP32的开发板了。</p>
<p></p>
<p>到这里开发环境安装完成。</p>
<p> </p>
<p>经查开发板原理图,D5在GPIO19上,那么,也不管Arduino的管脚怎么定义地,直接用19干。</p>
<p> </p>
<pre>
<code>
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(19, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(19, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(19, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}</code></pre>
<p> </p>
<p>点右箭头又编译又下载,在编译完时按信BOOT键。。。。。</p>
<p>然后完成后再按RESET键,久违的红灯闪了起来。</p>
</div><script> var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;" style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
if(parseInt(discuz_uid)==0){
(function($){
var postHeight = getTextHeight(400);
$(".showpostmsg").html($(".showpostmsg").html());
$(".showpostmsg").after(loginstr);
$(".showpostmsg").css({height:postHeight,overflow:"hidden"});
})(jQuery);
} </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script> <p>谢谢分享,太详细了。</p>
<p>可以的</p>
页:
[1]