Select ESPEasy plugin compile with Atom ???

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
pinie
Normal user
Posts: 17
Joined: 16 Jan 2021, 09:58

Select ESPEasy plugin compile with Atom ???

#1 Post by pinie » 16 Jan 2021, 10:13

Hi there,
I downloaded espeasy mega (source code) from the github. Now I have created a bin file with Atom / Platformio.
Where or how is determined which devices are compiled with???
Plugins are in the src folder. I would like to create a bin file according to my needs.

Many Thanks

Thoralf

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Select ESPEasy plugin compile with Atom ???

#2 Post by TD-er » 16 Jan 2021, 10:20

Atom (with PlatformIO installed) does have an environment selector in the lower left corner.
You can select a "custom" environment to build.
Then you rename the "Custom_sample.h" file to "Custom.h" and select which plugins you like to have in the build.
The build process detects if the Custom.h file exists and if it does, it will use that one as configuration for your build.

pinie
Normal user
Posts: 17
Joined: 16 Jan 2021, 09:58

Re: Select ESPEasy plugin compile with Atom ???

#3 Post by pinie » 16 Jan 2021, 11:14

Hi there,

that was the crucial clue. Many Thanks!!!
For example, if I want to add a VL53l0x (_P133 plugin) I copy the "_P133_VL53L0X.ino" into the src folder and the library into the lib folder. Then as you have described in the "custom.h" the reference for the VL53loX and then compile.

I tested your hint and only activated one sensor in "custom.h" and, as I had hoped, only one sensor was selected on the ESPEasy surface under "device".
That's exactly how I wanted it. Super!!!!

many Greetings

Thoralf

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Select ESPEasy plugin compile with Atom ???

#4 Post by TD-er » 16 Jan 2021, 11:18

You're welcome.
Have fun!

pinie
Normal user
Posts: 17
Joined: 16 Jan 2021, 09:58

Re: Select ESPEasy plugin compile with Atom ???

#5 Post by pinie » 16 Jan 2021, 12:22

Hi there,

I still have a question about compiling. Sometimes I get the error message at the bottom left in Atom: "Custom: Build with error highlighting (dev_ESP8266_4096)".
Sometimes it still compiles a file and sometimes it doesn't. The file created is called "ESP_Easy_mega_20210116_custom_ESP8266_4M1M.bin" and works for my ESP 8266 too.
Atom apparently has a problem with the name "dev_ESP8266_4096". But where do you adjust that. I haven't changed anything regarding this designation.

many Greetings

Thoralf

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Select ESPEasy plugin compile with Atom ???

#6 Post by TD-er » 16 Jan 2021, 20:23

I did use Atom for a while when developing for ESPEasy, but since I learned about VS code, I have not used Atom anymore as it was having lots of strange issues when working with such large projects as ESPEasy is.

So I suggest to have a look at VS code.

pinie
Normal user
Posts: 17
Joined: 16 Jan 2021, 09:58

Re: Select ESPEasy plugin compile with Atom ???

#7 Post by pinie » 17 Jan 2021, 13:24

Hi there,

Thanks for your tip. The installation went without any problems.
Was able to create a bin file immediately and without much knowledge.
Will probably change.

Thoralf

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests