Help needed in customization built
Posted: 29 Jan 2024, 21:49
Hello,
I have successfully tried ESPEasy with a PZEM Energy interface and a simple display with mega_20231225 release.
I need to make a custom-built with PZEM mains interface, rotary encoder, DS3231 clock and other interface for a Wemos D1, which are not part of the standard Energy built, if I'm not mistaken.
I succeed in installing the package of VS Code with PlatformIO, Git, Python, Arduino ESP8266 as well as some other extensions ; don't know if all is necessary ?
I followed this : https://espeasy.readthedocs.io/en/lates ... ormIO.html and the video on Youtube of a guy named Gijs Noorlander Unfortunately, he hasn't published the next steps... So I tried by myself to compile some standard packages, the normal_ESP8266_1M and 4M : no error message, and it seems the BIN file size has the same as those supplied in the GIT package !
My concern is now regarding the customization ; I understood that I must copy the custom-sample.h file as custom.h, then uncomment all the plugin lines that I need, and eventually set the Wi-Fi credentials, network settings aso.
There are some things unclear to me :
1) The statement at the beginning : define USE_CUSTOM_H as a build flags. ie : export PLATFORMIO_BUILD_FLAGS="'-DUSE_CUSTOM_H'" ; what does this mean, how to apply this requirement, please ?
2) In my search and readings, there is also noticed : "Uncomment #define USE_CUSTOM_H in file ESPEasy_common.h. Needed or not ?
3) Anything else I missed or misunderstood ?
Thanks for your support !
I have successfully tried ESPEasy with a PZEM Energy interface and a simple display with mega_20231225 release.
I need to make a custom-built with PZEM mains interface, rotary encoder, DS3231 clock and other interface for a Wemos D1, which are not part of the standard Energy built, if I'm not mistaken.
I succeed in installing the package of VS Code with PlatformIO, Git, Python, Arduino ESP8266 as well as some other extensions ; don't know if all is necessary ?
I followed this : https://espeasy.readthedocs.io/en/lates ... ormIO.html and the video on Youtube of a guy named Gijs Noorlander Unfortunately, he hasn't published the next steps... So I tried by myself to compile some standard packages, the normal_ESP8266_1M and 4M : no error message, and it seems the BIN file size has the same as those supplied in the GIT package !
My concern is now regarding the customization ; I understood that I must copy the custom-sample.h file as custom.h, then uncomment all the plugin lines that I need, and eventually set the Wi-Fi credentials, network settings aso.
There are some things unclear to me :
1) The statement at the beginning : define USE_CUSTOM_H as a build flags. ie : export PLATFORMIO_BUILD_FLAGS="'-DUSE_CUSTOM_H'" ; what does this mean, how to apply this requirement, please ?
2) In my search and readings, there is also noticed : "Uncomment #define USE_CUSTOM_H in file ESPEasy_common.h. Needed or not ?
3) Anything else I missed or misunderstood ?
Thanks for your support !