当前位置:网站首页>用arduino开发ESP8266 搭建开发环境
用arduino开发ESP8266 搭建开发环境
2022-07-28 11:26:00 【firseve】
IDE开发环境
下载地址
https://www.arduino.cc/en/Main/Software?setlang=cn
IDE使用java开发,所以当启动有问题的时候看下你的环境变量里是否有影响的
默认环境是用来开发 AVR单片机使用的,但是这玩意太好使了,就会有三方库,如8266的支持
打开Arduino IDE,文件->首选项->在“附加开发板管理器网址”输入
http://arduino.esp8266.com/stable/package_esp8266com_index.json

当你有多个三方开发板的库的时候,中间使用逗号分隔

打开开发板管理器 搜索8266就可以安装了,有些人的网络可能有问题,那没办法了,至少我是翻墙才下载下来了这个库

因为我安装过了,所以安装位置的按钮是不可用的

我的板子都是选择的NodeMCU

作为开发入门,可以从这里选择已有案例作为demo的参考来熟悉基本功能
另外可能有的问题是你插上了板子连接到电脑usb以后仍然有问题,那么可能就是驱动的问题了
一般这种开发板子有2种驱动
arduino安装后的drivers目录下有CP210x的驱动,不过国产的 ch340的驱动就要从其他地方下载了,百度吧
我的电脑 右键 管理 设备管理器 能看到com口,如果驱动有问题你能看到黄叹号的设备
上面图片里的Blink就是一个最简单的LED灯亮灭的代码
点击实例,选择开发板和com口以后 点界面上的右箭头就可以编译下载到 esp8266里面了,然后就能看到一闪一闪了
PS:板载LED使用的是 D4 连接LED 也就是 GPIO2,高电平,Blink里面的LED_BUILTIN都换成 D4 就可以了
边栏推荐
- 太赞了!京东研发一哥力荐的高可用网站构建技术PDF,备好水,慢慢啃
- [try to hack] UDF raises rights
- Detailed explanation of boost official website search engine project
- Great! Jd.com developed the highly available website construction technology PDF recommended by the first brother. Prepare the water and chew it slowly
- [try to hack] at, SC, PS command authorization
- 【Try to Hack】AT、SC、PS命令提权
- IRBuilder
- Loongarch Godson architecture document collection
- php 日期计算操作处理,当前日期加一天和指定日期减一天
- 数字经济时代的开源数据库创新 | 2022 开放原子全球开源峰会数据库分论坛圆满召开
猜你喜欢

Interpretable ml of Li Hongyi's machine learning model

Hcip (PAP authentication and chap authentication of PPP)

Huawei releases harmonyos 3 and all scene new products, and the smart experience goes further

Use Baidu PaddlePaddle easydl to complete garbage classification

Application of mobile face stylization Technology

Unitywebrequest is used in unity to load network and local pictures

Unity one key replacement of objects in the scene

MySQL之知识点(十三)
![[leetcode] 8. binary search · binary search](/img/35/c4ff66c124754c2a9a7d63b8040e4a.png)
[leetcode] 8. binary search · binary search

Zhou Hongyi talks about Internet thinking: users, not customers
随机推荐
Lua对table进行深拷贝
IRBuilder
Test platform (V) knowledge points supplement
The game process and the underlying implementation are gradually completed
SQL injection less23 (filter comment)
PHP gets all the dates of this week or the last seven days
SQL注入 Less24(二次注入)
CentOS 7 install MySQL 5.7 & uninstall MySQL 5.7
使用百度飞桨 EasyDL 完成垃圾分类
一些知识概念
WebView详解
Lyscript get previous and next instructions
[diary of supplementary questions] [2022 Niuke summer multi school 2] i-let fat tension
Image filter from the perspective of convolution
【Try to Hack】AT、SC、PS命令提权
Rest style
【vulnhub】presidential1
Unity中使用UnityWebRequest进行网络和本地图片加载
"Weilai Cup" 2022 Niuke summer multi school training camp 2
8000 字讲透 OBSA 原理与应用实践