当前位置:网站首页>用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 就可以了
边栏推荐
- Alexnet - paper analysis and reproduction
- Interpretable ml of Li Hongyi's machine learning model
- SQL注入 Less26(过滤空格和注释符,使用不带空格的报错注入)
- Interpretation of the paper: attention mechanism in medical images
- 腾讯二面:@Bean 与 @Component 用在同一个类上,会怎么样?
- [try to hack] at, SC, PS command authorization
- [diary of supplementary questions] [2022 Niuke summer multi school 2] l-link with level editor I
- The principle and use of the wrap file of tolua
- [diary of supplementary questions] [2022 Niuke summer multi school 2] D-Link with game glitch
- 新手如何快速完成建站?来免费“试衣间”体验
猜你喜欢

Ruiji takeout - day01

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

IRBuilder

Unitywebrequest is used in unity to load network and local pictures

Yolov3 complete explanation - from the perspective of data coding

REST风格

Distributed system (III) construction of distributed transaction service

arduino pro mini ATMEGA328P 连线和点亮第一盏LED(同时记录烧录失败的问题stk500_recv)

Untiy controls the playback speed of animation

分布式定时器
随机推荐
REST风格
【Try to Hack】内网基础
Alexnet - paper analysis and reproduction
【vulnhub】presidential1
使用百度飞桨 EasyDL 完成垃圾分类
Unity中使用UnityWebRequest进行网络和本地图片加载
Latex矩阵简单使用
After abolishing Tencent cloud: meiyabaike won the bid of 98.3 million
[leetcode] 8. binary search · binary search
解决PHP提示Warning: Division by zero in错误
Play with poetry - appreciate the beauty of ancient poetry
Yolov3 complete explanation - from the perspective of data coding
PHP时间戳相减转化为天小时分秒
SQL injection less23 (filter comment)
"Weilai Cup" 2022 Niuke summer multi school training camp 2
本地化、低时延、绿色低碳:阿里云正式启用福州数据中心
Skiasharp's WPF self drawn drag ball (case version)
新手如何快速完成建站?来免费“试衣间”体验
社区点赞业务缓存设计优化探索
用C语言开发NES游戏(CC65)09、滚动