当前位置:网站首页>用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 就可以了
边栏推荐
- Matlab sets the size of graphics window and image and the position of legend
- Docker runs MySQL service
- What is WordPress
- “蔚来杯“2022牛客暑期多校训练营2
- [leetcode] 8. binary search · binary search
- Some knowledge concepts
- Play with poetry - appreciate the beauty of ancient poetry
- Introduction to several methods of keeping two decimal places in PHP
- SQL injection LESS18 (header injection + error injection)
- Skiasharp's WPF self drawn drag ball (case version)
猜你喜欢

Hcip (PAP authentication and chap authentication of PPP)

Stored state and running state of program

Style conversion model style_ Transformer project instance pytorch implementation

Hcip day 1

Matlab sets the size of graphics window and image and the position of legend

ViewPager2+Fragment

Lua 中 __index、__newindex、rawget、rawset的理解
![Opencv notes sorting [Hough transform]](/img/80/8f5b0d7e1c5adc39cb5404dcdb1b11.png)
Opencv notes sorting [Hough transform]

Lua对table进行深拷贝

易观分析:以用户为中心提升手机银行用户体验,助力用户价值增长
随机推荐
Hcip (PAP authentication and chap authentication of PPP)
2022.07.06 summer training personal qualifying (I)
laravel表单数据验证
Style conversion model style_ Transformer project instance pytorch implementation
Detailed deployment and configuration of CEPH cluster (II)
Distributed system (III) construction of distributed transaction service
[geek challenge 2019] babysql-1 | SQL injection
一些知识概念
Saltstack command injection vulnerability analysis (cve-2020-16846)
Rest style
[diary of supplementary questions] [2022 Niuke summer multi school 2] l-link with level editor I
arduino pro mini ATMEGA328P 连线和点亮第一盏LED(同时记录烧录失败的问题stk500_recv)
腾讯二面:@Bean 与 @Component 用在同一个类上,会怎么样?
2022.07.07 summer training personal qualifying (II)
PHP timestamp subtraction converts to days, hours, minutes and seconds
Skiasharp's WPF self drawn drag ball (case version)
MySQL之知识点(十三)
解决PHP提示Warning: Division by zero in错误
SQL injection less23 (filter comment)
Alexnet - paper analysis and reproduction