如何自行编译ESP8266 ESPEasy 固件

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qadzhangc/article/details/89520064

有些东西总是要看看,要改改 想动动。。。

这个怎么动?

arduino标准环境?这个没搞定。。。。。

然后方法有二:

1。GIT 下源码后  /ESPEasy/tools/ 下有个 build_ESPeasy.sh 可以运行它。。。它会自己去下需要的各种编译插件,总之 凑合可以完成编译

2。使用VS CODE 安装  PlatformIO 的插件

这样好用一些

然后改改  ESPEasy/platformio.ini 把里面那些自己用不着的开发板都删除一下,否则每次都有全编译 时间太长

要想启用ESPEasy里那些测试的插件,需要修改

ESPEasy/src/ESPEasy-Globals.h

按照说明把前面的//去掉,默认只有 NORMAL 的 ,后面那些一个不如一个靠谱,谨慎使用

//Select which plugin sets you want to build.
//These are normally automaticly set via the Platformio build environment.
//If you use ArduinoIDE you might need to uncomment some of them, depending on your needs
//If you dont select any, a version with a minimal number of plugins will be biult for 512k versions.
//(512k is NOT finsihed or tested yet as of v2.0.0-dev6)

//build all the normal stable plugins (on by default)
 #define PLUGIN_BUILD_NORMAL

//build all plugins that are in test stadium
 #define PLUGIN_BUILD_TESTING

//build all plugins that still are being developed and are broken or incomplete
#define PLUGIN_BUILD_DEV

//add this if you want SD support (add 10k flash)
//#define FEATURE_SD

猜你喜欢

转载自blog.csdn.net/qadzhangc/article/details/89520064
今日推荐