enfieldcat / ESP32_miniThrottle

ESP32 based JMRI WiThrottle with support for locomotives (rosters), turnouts and routes. Configurable ove serial connection. Uses Arduino IDE.
5 stars 2 forks source link

Compile error no such file or directory #5

Open sbegnaud opened 12 months ago

sbegnaud commented 12 months ago

When I attempt to compile the sketch, I get this error:

crypto/base64.h: No such file or directory.

When I look in the sketch folder, of course there is no such file, nor anything similar that needs to be renamed or modified (like the myThrottle.h)

sbegnaud commented 12 months ago

include crypto/base64.h

is located in the static_defs.h folder

sbegnaud commented 12 months ago

Version 0.6a

enfieldcat commented 12 months ago

Currently most of the development work is on "pause" for the next few months, but perhaps switching to the development git branch might work around your issue. I'm probably not going to have much time to continue this project until perhaps early 2024 or maybe December. A summary of what gets added in development is shown below. While these aren't major features the first one may deal with the issue at hand.

Try switch to the development version, this should:

KTB001 commented 1 week ago

Hi, thanks for having created this and for having made the effort to publish it. Unfortunately, I get a lot of error messages, when I try to complile it.

In file included from c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/lcdgfx.h:30, from G:\Codico\MiniThrottle\ESP32_miniThrottle\static_defs.h:37, from G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:33: c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::copy(_CharT, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits> std::basic_string_view<_CharT, _Traits>::substr(size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr int std::basic_string_view<_CharT, _Traits>::compare(std::basic_string_view<_CharT, _Traits>) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\string_view.tcc: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::rfind(const _CharT, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, int> std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _Tp&) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr std::cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::cxx11::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn(char_type, std::streamsize)': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type, std::streamsize)': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_result<_Iter, _Out> std::ranges::uninitialized_copy_fn::operator()(_Iter, _ISent, _Out, _OSent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_n_result<_Iter, _Out> std::ranges::uninitialized_copy_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_result<_Iter, _Out> std::ranges::uninitialized_move_fn::operator()(_Iter, _ISent, _Out, _OSent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_n_result<_Iter, _Out> std::ranges::uninitialized_move_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino: In function 'void setup()': G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:408:6: error: 'spi_flash_get_chip_size' was not declared in this scope 408 | spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino: In function 'void mdnsLookup(const char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino:493:71: error: 'mdns_result_t' {aka 'struct mdns_result_s'} has no member named 'tcpip_if' 493 | Serial.printf("%d: Interface: %s, Type: %s\r\n", i++, if_str[r->tcpip_if], ip_protocol_str[r->ip_protocol]); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'float runAutomation::getvar(char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:363:65: error: 'spi_flash_get_chip_size' was not declared in this scope 363 | else if (strcmp (varcopy, "flashsize") == 0) retval = (spi_flash_get_chip_size() / (1024 * 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'void runAutomation::autoInitPin(uint8_t, uint8_t, uint16_t)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:967:11: error: 'adcAttachPin' was not declared in this scope 967 | adcAttachPin(pinNr); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:984:13: error: 'ledcSetup' was not declared in this scope 984 | ledcSetup(ledChannel, 5000, 8); | ^~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:985:13: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 985 | ledcAttachPin(pinNr, ledChannel); | ^~~~~ | ledcAttach G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino: In function 'void mt_set_server(int, char*)': G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino:1506:38: error: no matching function for call to 'nvs_get_string(char [15], char [65], , unsigned int)' 1506 | if (index==0) nvs_get_string (paramName, host, HOST, sizeof(host)); | ~~~^~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate: 'void nvs_get_string(const char, char, const char, int)' 45 | void nvs_get_string (const char strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70: note: no known conversion for argument 3 from '' to 'const char' 45 | void nvs_get_string (const char strName, char strDest, const char strDefault, int strSize) | ~~^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate: 'void nvs_get_string(const char, char, int)' 59 | void nvs_get_string (const char strName, char strDest, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate expects 3 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate: 'void nvs_get_string(const char, const char, char, const char, int)' 193 | void nvs_get_string (const char nameSpace, const char strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate expects 5 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function 'void mkWebConfig(WiFiClient, bool)': G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1039:30: error: no matching function for call to 'nvs_get_string(char [16], char [64], , unsigned int)' 1039 | if (n==0) nvs_get_string (labelName, labelDesc, HOST, sizeof(labelDesc)); | ~~~^~~~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate: 'void nvs_get_string(const char, char, const char, int)' 45 | void nvs_get_string (const char strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70: note: no known conversion for argument 3 from '' to 'const char' 45 | void nvs_get_string (const char strName, char strDest, const char strDefault, int strSize) | ~~^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate: 'void nvs_get_string(const char, char, int)' 59 | void nvs_get_string (const char strName, char strDest, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate expects 3 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate: 'void nvs_get_string(const char, const char, char, const char, int)' 193 | void nvs_get_string (const char nameSpace, const char strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate expects 5 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function 'void mkWebDeviceDescript(WiFiClient)': G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1748:6: error: 'spi_flash_get_chip_size' was not declared in this scope 1748 | spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~

exit status 1

Compilation error: 'spi_flash_get_chip_size' was not declared in this scope

I would very much appreciate help to resolve the problem.

BR

enfieldcat commented 1 week ago

It looks like you may be using a later major revision (3) of the ESP board manager - down grade to version 2 and try again.

See: miniThrottle Troubleshooting (camelthorn.cloud) https://camelthorn.cloud/miniThrottle/miniTroubleshooting.php - while it addresses just one of the errors you have seen. This should fix the others for you too.

Check that you are not using verson 3 of the ESP32 board manager. If you are, downgrade to version 2. In your IDE go to the "Tools" drop down and find "boards manager". Now search for "ESP32", and in the "esp32 by Espressif" you will see a dropdown selection. This may have a number like "3.0.3", select the most recent version 2, eg "2.0.17" and install that. Don't upgrade your boards for esp32 while you want to compile miniThrottle.

On Thu, 3 Oct 2024 at 02:44, KTB001 @.***> wrote:

Hi, thanks for having created this and for having made the effort to publish it. Unfortunately, I get a lot of error messages, when I try to complile it.

In file included from c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/lcdgfx.h:30, from G:\Codico\MiniThrottle\ESP32_miniThrottle\static_defs.h:37, from G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:33: c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::copy(_CharT, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits> std::basic_string_view<_CharT, _Traits>::substr(size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr int std::basic_string_view<_CharT, _Traits>::compare(std::basic_string_view<_CharT, _Traits>) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\string_view.tcc: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::rfind(const _CharT, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, int> std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _Tp&) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr std::cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::cxx11::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn(char_type, std::streamsize)': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type, std::streamsize)': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_result<_Iter, _Out> std::ranges::uninitialized_copy_fn::operator()(_Iter, _ISent, _Out, _OSent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_n_result<_Iter, _Out> std::ranges::uninitialized_copy_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_result<_Iter, _Out> std::ranges::uninitialized_move_fn::operator()(_Iter, _ISent, _Out, _OSent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_n_result<_Iter, _Out> std::ranges::uninitialized_move_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino: In function 'void setup()': G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:408:6: error: 'spi_flash_get_chip_size' was not declared in this scope 408 | spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino: In function 'void mdnsLookup(const char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino:493:71: error: 'mdns_result_t' {aka 'struct mdns_result_s'} has no member named 'tcpip_if' 493 | Serial.printf("%d: Interface: %s, Type: %s\r\n", i++, if_str[r->tcpip_if], ip_protocol_str[r->ip_protocol]); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'float runAutomation::getvar(char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:363:65: error: 'spi_flash_get_chip_size' was not declared in this scope 363 | else if (strcmp (varcopy, "flashsize") == 0) retval = (spi_flash_get_chip_size() / (1024 * 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'void runAutomation::autoInitPin(uint8_t, uint8_t, uint16_t)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:967:11: error: 'adcAttachPin' was not declared in this scope 967 | adcAttachPin(pinNr); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:984:13: error: 'ledcSetup' was not declared in this scope 984 | ledcSetup(ledChannel, 5000, 8); | ^~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:985:13: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 985 | ledcAttachPin(pinNr, ledChannel); | ^~~~~ | ledcAttach G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino: In function 'void mt_set_server(int, char*)': G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino:1506:38: error: no matching function for call to 'nvs_get_string(char [15], char [65], , unsigned int)' 1506 | if (index==0) nvs_get_string (paramName, host, HOST, sizeof(host)); | ~~~^~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate: 'void nvs_get_string(const char, char, const char, int)' 45 | void nvs_get_string (const char

strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70: note: no known conversion for argument 3 from '' to 'const char' 45 | void nvs_get_string (const char strName, char strDest, const char strDefault, int strSize) | ~~^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate: 'void nvs_get_string(const char, char, int)' 59 | void nvs_get_string (const char strName, char strDest, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate expects 3 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate: 'void nvs_get_string(const char, const char, char, const char, int)' 193 | void nvs_get_string (const char nameSpace, const char

*strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate expects 5 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function 'void mkWebConfig(WiFiClient, bool)': G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1039:30: error: no matching function for call to 'nvs_get_string(char [16], char [64], , unsigned int)' 1039 | if (n==0) nvs_get_string (labelName, labelDesc, HOST, sizeof(labelDesc)); |


G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate:
'void nvs_get_string(const char, char*, const char*, int)'
45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) |
^~~~~~~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70:
note: no known conversion for argument 3 from '' to 'const char' 45 | void
nvs_get_string (const char strName, char strDest, const char strDefault,
int strSize) | ~~~~~~~~~~~~^~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate:
'void nvs_get_string(const char, char, int)' 59 | void nvs_get_string
(const char strName, char strDest, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate
expects 3 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate:
'void nvs_get_string(const char, const char, char, const char, int)' 193 |
void nvs_get_string (const char* nameSpace, const char *strName, char
*strDest, const char

*strDefault, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate
expects 5 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function 'void
mkWebDeviceDescript(WiFiClient*)':
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1748:6: error:
'spi_flash_get_chip_size' was not declared in this scope
1748 | spi_flash_get_chip_size() / (1024 * 1024));
| ^~~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: 'spi_flash_get_chip_size' was not declared in this scope

I would very much appreciate help to resolve the problem.

BR

—
Reply to this email directly, view it on GitHub
<https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2388681437>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIXKLEAUFM3JEJU6RSGMPW3ZZP2CBAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGY4DCNBTG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
KTB001 commented 6 days ago

Hello enfieldcat,

 

thanks for your fast response. 

 

Using V 2.0.1.7 resolved the problem. It compiles now. 

 

Next issue is, that the display does not work. I use a 1,8" with the ST7735. It remains with a fully illuminated backlight, but does not display anything. 

 

With a simple Hello World sketch on an Arduino Nano it works. 

 

Pinning is 

RST = 27

CS = 15

DC = 2 (I have also tried 12)

SCL = 14

SDA/MOSI = 13

 

Do you have a tip for me?

 

Thanks in advance. 

BR

Gesendet: Donnerstag, 03. Oktober 2024 um 08:27 Uhr Von: "enfieldcat" @.> An: "enfieldcat/ESP32_miniThrottle" @.> Cc: "KTB001" @.>, "Comment" @.> Betreff: Re: [enfieldcat/ESP32_miniThrottle] Compile error no such file or directory (Issue #5)

  It looks like you may be using a later major revision (3) of the ESP board manager - down grade to version 2 and try again.

See: miniThrottle Troubleshooting (camelthorn.cloud) https://camelthorn.cloud/miniThrottle/miniTroubleshooting.php - while it addresses just one of the errors you have seen. This should fix the others for you too.

Check that you are not using verson 3 of the ESP32 board manager. If you are, downgrade to version 2. In your IDE go to the "Tools" drop down and find "boards manager". Now search for "ESP32", and in the "esp32 by Espressif" you will see a dropdown selection. This may have a number like "3.0.3", select the most recent version 2, eg "2.0.17" and install that. Don't upgrade your boards for esp32 while you want to compile miniThrottle.

On Thu, 3 Oct 2024 at 02:44, KTB001 @.***> wrote:

Hi, thanks for having created this and for having made the effort to publish it. Unfortunately, I get a lot of error messages, when I try to complile it.

In file included from c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/lcdgfx.h:30, from G:\Codico\MiniThrottle\ESP32_miniThrottle\static_defs.h:37, from G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:33: c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::copy(_CharT, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits> std::basic_string_view<_CharT, _Traits>::substr(size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr int std::basic_string_view<_CharT, _Traits>::compare(std::basic_string_view<_CharT, _Traits>) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\string_view.tcc: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::rfind(const _CharT, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, int> std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _Tp&) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr std::cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::cxx11::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT, size_type) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn(char_type, std::streamsize)': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type, std::streamsize)': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_result<_Iter, _Out> std::ranges::uninitialized_copy_fn::operator()(_Iter, _ISent, _Out, _OSent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_n_result<_Iter, _Out> std::ranges::uninitialized_copy_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_result<_Iter, _Out> std::ranges::uninitialized_move_fn::operator()(_Iter, _ISent, _Out, _OSent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_n_result<_Iter, _Out> std::ranges::uninitialized_move_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const': c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino: In function 'void setup()': G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:408:6: error: 'spi_flash_get_chip_size' was not declared in this scope 408 | spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino: In function 'void mdnsLookup(const char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino:493:71: error: 'mdns_result_t' {aka 'struct mdns_result_s'} has no member named 'tcpip_if' 493 | Serial.printf("%d: Interface: %s, Type: %s\r\n", i++, if_str[r->tcpip_if], ip_protocol_str[r->ip_protocol]); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'float runAutomation::getvar(char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:363:65: error: 'spi_flash_get_chip_size' was not declared in this scope 363 | else if (strcmp (varcopy, "flashsize") == 0) retval = (spi_flash_get_chip_size() / (1024 * 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'void runAutomation::autoInitPin(uint8_t, uint8_t, uint16_t)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:967:11: error: 'adcAttachPin' was not declared in this scope 967 | adcAttachPin(pinNr); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:984:13: error: 'ledcSetup' was not declared in this scope 984 | ledcSetup(ledChannel, 5000, 8); | ^~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:985:13: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 985 | ledcAttachPin(pinNr, ledChannel); | ^~~~~ | ledcAttach G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino: In function 'void mt_set_server(int, char*)': G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino:1506:38: error: no matching function for call to 'nvs_get_string(char [15], char [65], , unsigned int)' 1506 | if (index==0) nvs_get_string (paramName, host, HOST, sizeof(host)); | ~~~^~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate: 'void nvs_get_string(const char, char, const char, int)' 45 | void nvs_get_string (const char

strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70: note: no known conversion for argument 3 from '' to 'const char' 45 | void nvs_get_string (const char strName, char strDest, const char strDefault, int strSize) | ~~^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate: 'void nvs_get_string(const char, char, int)' 59 | void nvs_get_string (const char strName, char strDest, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate expects 3 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate: 'void nvs_get_string(const char, const char, char, const char, int)' 193 | void nvs_get_string (const char nameSpace, const char

*strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate expects 5 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function 'void mkWebConfig(WiFiClient, bool)': G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1039:30: error: no matching function for call to 'nvs_get_string(char [16], char [64], , unsigned int)' 1039 | if (n==0) nvs_get_string (labelName, labelDesc, HOST, sizeof(labelDesc)); |


G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate:
'void nvs_get_string(const char, char*, const char*, int)'
45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) |
^~~~~~~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70:
note: no known conversion for argument 3 from '' to 'const char' 45 | void
nvs_get_string (const char strName, char strDest, const char strDefault,
int strSize) | ~~~~~~~~~~~~^~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate:
'void nvs_get_string(const char, char, int)' 59 | void nvs_get_string
(const char strName, char strDest, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate
expects 3 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate:
'void nvs_get_string(const char, const char, char, const char, int)' 193 |
void nvs_get_string (const char* nameSpace, const char *strName, char
*strDest, const char

*strDefault, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate
expects 5 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function 'void
mkWebDeviceDescript(WiFiClient*)':
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1748:6: error:
'spi_flash_get_chip_size' was not declared in this scope
1748 | spi_flash_get_chip_size() / (1024 * 1024));
| ^~~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: 'spi_flash_get_chip_size' was not declared in this scope

I would very much appreciate help to resolve the problem.

BR

—
Reply to this email directly, view it on GitHub
<https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2388681437>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIXKLEAUFM3JEJU6RSGMPW3ZZP2CBAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGY4DCNBTG4>
.
You are receiving this because you commented.Message ID:
***@***.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
enfieldcat commented 6 days ago

On your miniThrottle.h

Look for "DISPLAY SELECTION" Verify you #define only one display - #define ST7735 The other display types are commented out

Look for the section "#ifdef ST7735" and adjust the pin assignments. When I tested the device my pin maps would have been:

define SPI_RESET 27

define SPI_CS 15

define SPI_DC 12

define SPI_SCL 14

define SPI_SDA 13

So perhaps:

define SPI_RESET 27

define SPI_CS 15

define SPI_DC 2

define SPI_SCL 14

define SPI_SDA 13

On Fri, 4 Oct 2024 at 07:14, KTB001 @.***> wrote:

Hello enfieldcat,

thanks for your fast response.

Using V 2.0.1.7 resolved the problem. It compiles now.

Next issue is, that the display does not work. I use a 1,8" with the ST7735. It remains with a fully illuminated backlight, but does not display anything.

With a simple Hello World sketch on an Arduino Nano it works.

Pinning is

RST = 27

CS = 15

DC = 2 (I have also tried 12)

SCL = 14

SDA/MOSI = 13

Do you have a tip for me?

Thanks in advance.

BR

Gesendet: Donnerstag, 03. Oktober 2024 um 08:27 Uhr Von: "enfieldcat" @.> An: "enfieldcat/ESP32_miniThrottle" @.> Cc: "KTB001" @.>, "Comment" @.> Betreff: Re: [enfieldcat/ESP32_miniThrottle] Compile error no such file or directory (Issue #5)

It looks like you may be using a later major revision (3) of the ESP board manager - down grade to version 2 and try again.

See: miniThrottle Troubleshooting (camelthorn.cloud) https://camelthorn.cloud/miniThrottle/miniTroubleshooting.php - while it addresses just one of the errors you have seen. This should fix the others for you too.

Check that you are not using verson 3 of the ESP32 board manager. If you are, downgrade to version 2. In your IDE go to the "Tools" drop down and find "boards manager". Now search for "ESP32", and in the "esp32 by Espressif" you will see a dropdown selection. This may have a number like "3.0.3", select the most recent version 2, eg "2.0.17" and install that. Don't upgrade your boards for esp32 while you want to compile miniThrottle.

On Thu, 3 Oct 2024 at 02:44, KTB001 @.***> wrote:

Hi, thanks for having created this and for having made the effort to publish it. Unfortunately, I get a lot of error messages, when I try to complile it.

In file included from c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/lcdgfx.h:30, from G:\Codico\MiniThrottle\ESP32_miniThrottle\static_defs.h:37, from G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:33:

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::copy(_CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits> std::basic_string_view<_CharT, _Traits>::substr(size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr int std::basic_string_view<_CharT, _Traits>::compare(std::basic_string_view<_CharT, _Traits>) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\string_view.tcc: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::rfind(const _CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, int> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _Tp&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn(char_type*, std::streamsize)':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type*, std::streamsize)':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_result<_Iter, _Out> std::ranges::__uninitialized_copy_fn::operator()(_Iter, _ISent, _Out, _OSent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_n_result<_Iter, _Out> std::ranges::__uninitialized_copy_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_result<_Iter, _Out> std::ranges::__uninitialized_move_fn::operator()(_Iter, _ISent, _Out, _OSent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_n_result<_Iter, _Out> std::ranges::__uninitialized_move_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino: In function 'void setup()': G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:408:6: error: 'spi_flash_get_chip_size' was not declared in this scope 408 | spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino: In function 'void mdnsLookup(const char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino:493:71: error: 'mdns_result_t' {aka 'struct mdns_result_s'} has no member named 'tcpip_if' 493 | Serial.printf("%d: Interface: %s, Type: %s\r\n", i++, if_str[r->tcpip_if], ip_protocol_str[r->ip_protocol]); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'float runAutomation::getvar(char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:363:65: error: 'spi_flash_get_chip_size' was not declared in this scope 363 | else if (strcmp (varcopy, "flashsize") == 0) retval = (spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'void runAutomation::autoInitPin(uint8_t, uint8_t, uint16_t)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:967:11: error: 'adcAttachPin' was not declared in this scope 967 | adcAttachPin(pinNr); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:984:13: error: 'ledcSetup' was not declared in this scope 984 | ledcSetup(ledChannel, 5000, 8); | ^~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:985:13: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 985 | ledcAttachPin(pinNr, ledChannel); | ^~~~~ | ledcAttach G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino: In function 'void mt_set_server(int, char*)': G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino:1506:38: error: no matching function for call to 'nvs_get_string(char [15], char [65], , unsigned int)' 1506 | if (index==0) nvs_get_string (paramName, host, HOST, sizeof(host)); | ~~~^~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate: 'void nvs_get_string(const char, char, const char, int)' 45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70: note: no known conversion for argument 3 from '' to 'const char' 45 void nvs_get_string (const char strName, char strDest, const char strDefault, int strSize) ~~^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate: 'void nvs_get_string(const char, char, int)' 59 void nvs_get_string (const char strName, char strDest, int strSize) ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate expects 3 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate: 'void nvs_get_string(const char, const char, char, const char, int)' 193

void nvs_get_string (const char* nameSpace, const char

*strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate expects 5 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function 'void mkWebConfig(WiFiClient, bool)': G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1039:30: error: no matching function for call to 'nvs_get_string(char [16], char [64], , unsigned int)' 1039 | if (n==0) nvs_get_string (labelName, labelDesc, HOST, sizeof(labelDesc)); |


G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate:
'void nvs_get_string(const char, char*, const char*, int)'
45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) |
^~~~~~~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70:
note: no known conversion for argument 3 from '' to 'const char' 45 |
void
nvs_get_string (const char strName, char strDest, const char strDefault,
int strSize) | ~~~~~~~~~~~~^~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate:
'void nvs_get_string(const char, char, int)' 59 | void nvs_get_string
(const char strName, char strDest, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate
expects 3 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate:
'void nvs_get_string(const char, const char, char, const char, int)' 193
|
void nvs_get_string (const char* nameSpace, const char *strName, char
*strDest, const char

*strDefault, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate
expects 5 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function
'void
mkWebDeviceDescript(WiFiClient*)':
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1748:6: error:
'spi_flash_get_chip_size' was not declared in this scope
1748 | spi_flash_get_chip_size() / (1024 * 1024));
| ^~~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: 'spi_flash_get_chip_size' was not declared in this
scope

I would very much appreciate help to resolve the problem.

BR

—
Reply to this email directly, view it on GitHub
<
https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2388681437
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AIXKLEAUFM3JEJU6RSGMPW3ZZP2CBAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGY4DCNBTG4

.
You are receiving this because you commented.Message ID:
***@***.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>

— Reply to this email directly, view it on GitHub https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2392032618, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXKLEFPNG6WMNJOBUKYHILZZWCRHAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJSGAZTENRRHA . You are receiving this because you commented.Message ID: @.***>

KTB001 commented 6 days ago

Hello enfieldcat,

 

thanks again. 

 

I have it working now. 

 

It works with your original display pinning for the St7735. 

 

The ESP32 failed at the basic test and stopped. Never addressed the display. 

 

Pin 6 in your original setup is assigned to the Tx of the DCC Ex Uart. That causes a collision with the internal flash. 

I assigned Tx=22 and Rx=21 and then it worked. 

 

 

The encoder does not work at the moment. Only the switch function. I guess, the pinout of my decoder is not the standard one, so next I'm looking into this. 

 

BR

   

Gesendet: Freitag, 04. Oktober 2024 um 07:22 Uhr Von: "enfieldcat" @.> An: "enfieldcat/ESP32_miniThrottle" @.> Cc: "KTB001" @.>, "Comment" @.> Betreff: Re: [enfieldcat/ESP32_miniThrottle] Compile error no such file or directory (Issue #5)

  On your miniThrottle.h

Look for "DISPLAY SELECTION" Verify you #define only one display - #define ST7735 The other display types are commented out

Look for the section "#ifdef ST7735" and adjust the pin assignments. When I tested the device my pin maps would have been:

define SPI_RESET 27

define SPI_CS 15

define SPI_DC 12

define SPI_SCL 14

define SPI_SDA 13

So perhaps:

define SPI_RESET 27

define SPI_CS 15

define SPI_DC 2

define SPI_SCL 14

define SPI_SDA 13

On Fri, 4 Oct 2024 at 07:14, KTB001 @.***> wrote:

Hello enfieldcat,

thanks for your fast response.

Using V 2.0.1.7 resolved the problem. It compiles now.

Next issue is, that the display does not work. I use a 1,8" with the ST7735. It remains with a fully illuminated backlight, but does not display anything.

With a simple Hello World sketch on an Arduino Nano it works.

Pinning is

RST = 27

CS = 15

DC = 2 (I have also tried 12)

SCL = 14

SDA/MOSI = 13

Do you have a tip for me?

Thanks in advance.

BR

Gesendet: Donnerstag, 03. Oktober 2024 um 08:27 Uhr Von: "enfieldcat" @.> An: "enfieldcat/ESP32_miniThrottle" @.> Cc: "KTB001" @.>, "Comment" @.> Betreff: Re: [enfieldcat/ESP32_miniThrottle] Compile error no such file or directory (Issue #5)

It looks like you may be using a later major revision (3) of the ESP board manager - down grade to version 2 and try again.

See: miniThrottle Troubleshooting (camelthorn.cloud) https://camelthorn.cloud/miniThrottle/miniTroubleshooting.php - while it addresses just one of the errors you have seen. This should fix the others for you too.

Check that you are not using verson 3 of the ESP32 board manager. If you are, downgrade to version 2. In your IDE go to the "Tools" drop down and find "boards manager". Now search for "ESP32", and in the "esp32 by Espressif" you will see a dropdown selection. This may have a number like "3.0.3", select the most recent version 2, eg "2.0.17" and install that. Don't upgrade your boards for esp32 while you want to compile miniThrottle.

On Thu, 3 Oct 2024 at 02:44, KTB001 @.***> wrote:

Hi, thanks for having created this and for having made the effort to publish it. Unfortunately, I get a lot of error messages, when I try to complile it.

In file included from c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/lcdgfx.h:30, from G:\Codico\MiniThrottle\ESP32_miniThrottle\static_defs.h:37, from G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:33:

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::copy(_CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits> std::basic_string_view<_CharT, _Traits>::substr(size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr int std::basic_string_view<_CharT, _Traits>::compare(std::basic_string_view<_CharT, _Traits>) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\string_view.tcc: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::rfind(const _CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, int> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _Tp&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn(char_type*, std::streamsize)':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type*, std::streamsize)':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_result<_Iter, _Out> std::ranges::__uninitialized_copy_fn::operator()(_Iter, _ISent, _Out, _OSent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_n_result<_Iter, _Out> std::ranges::__uninitialized_copy_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_result<_Iter, _Out> std::ranges::__uninitialized_move_fn::operator()(_Iter, _ISent, _Out, _OSent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_n_result<_Iter, _Out> std::ranges::__uninitialized_move_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino: In function 'void setup()': G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:408:6: error: 'spi_flash_get_chip_size' was not declared in this scope 408 | spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino: In function 'void mdnsLookup(const char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino:493:71: error: 'mdns_result_t' {aka 'struct mdns_result_s'} has no member named 'tcpip_if' 493 | Serial.printf("%d: Interface: %s, Type: %s\r\n", i++, if_str[r->tcpip_if], ip_protocol_str[r->ip_protocol]); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'float runAutomation::getvar(char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:363:65: error: 'spi_flash_get_chip_size' was not declared in this scope 363 | else if (strcmp (varcopy, "flashsize") == 0) retval = (spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'void runAutomation::autoInitPin(uint8_t, uint8_t, uint16_t)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:967:11: error: 'adcAttachPin' was not declared in this scope 967 | adcAttachPin(pinNr); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:984:13: error: 'ledcSetup' was not declared in this scope 984 | ledcSetup(ledChannel, 5000, 8); | ^~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:985:13: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 985 | ledcAttachPin(pinNr, ledChannel); | ^~~~~ | ledcAttach G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino: In function 'void mt_set_server(int, char*)': G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino:1506:38: error: no matching function for call to 'nvs_get_string(char [15], char [65], , unsigned int)' 1506 | if (index==0) nvs_get_string (paramName, host, HOST, sizeof(host)); | ~~~^~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate: 'void nvs_get_string(const char, char, const char, int)' 45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70: note: no known conversion for argument 3 from '' to 'const char' 45 void nvs_get_string (const char strName, char strDest, const char strDefault, int strSize) ~~^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate: 'void nvs_get_string(const char, char, int)' 59 void nvs_get_string (const char strName, char strDest, int strSize) ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate expects 3 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate: 'void nvs_get_string(const char, const char, char, const char, int)' 193

void nvs_get_string (const char* nameSpace, const char

*strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate expects 5 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function 'void mkWebConfig(WiFiClient, bool)': G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1039:30: error: no matching function for call to 'nvs_get_string(char [16], char [64], , unsigned int)' 1039 | if (n==0) nvs_get_string (labelName, labelDesc, HOST, sizeof(labelDesc)); |


G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate:
'void nvs_get_string(const char, char*, const char*, int)'
45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) |
^~~~~~~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70:
note: no known conversion for argument 3 from '' to 'const char' 45 |
void
nvs_get_string (const char strName, char strDest, const char strDefault,
int strSize) | ~~~~~~~~~~~~^~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate:
'void nvs_get_string(const char, char, int)' 59 | void nvs_get_string
(const char strName, char strDest, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate
expects 3 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate:
'void nvs_get_string(const char, const char, char, const char, int)' 193
|
void nvs_get_string (const char* nameSpace, const char *strName, char
*strDest, const char

*strDefault, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate
expects 5 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function
'void
mkWebDeviceDescript(WiFiClient*)':
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1748:6: error:
'spi_flash_get_chip_size' was not declared in this scope
1748 | spi_flash_get_chip_size() / (1024 * 1024));
| ^~~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: 'spi_flash_get_chip_size' was not declared in this
scope

I would very much appreciate help to resolve the problem.

BR

—
Reply to this email directly, view it on GitHub
<
https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2388681437
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AIXKLEAUFM3JEJU6RSGMPW3ZZP2CBAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGY4DCNBTG4

.
You are receiving this because you commented.Message ID:
***@***.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>

— Reply to this email directly, view it on GitHub https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2392032618, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXKLEFPNG6WMNJOBUKYHILZZWCRHAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJSGAZTENRRHA . You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

KTB001 commented 6 days ago

I also have the encoder working now. Nice :-). 

 

Do you think, that it could also work on a LoLin ESP32 Lite board? 

If you don't see any opstacles I will buy one and give it a try. 

 

I was wondering, that the miniThrottle.h does not contain a WiFi password? 

Do I have to disable the PW in the DCC EX Command Station? 

   

Gesendet: Freitag, 04. Oktober 2024 um 07:22 Uhr Von: "enfieldcat" @.> An: "enfieldcat/ESP32_miniThrottle" @.> Cc: "KTB001" @.>, "Comment" @.> Betreff: Re: [enfieldcat/ESP32_miniThrottle] Compile error no such file or directory (Issue #5)

  On your miniThrottle.h

Look for "DISPLAY SELECTION" Verify you #define only one display - #define ST7735 The other display types are commented out

Look for the section "#ifdef ST7735" and adjust the pin assignments. When I tested the device my pin maps would have been:

define SPI_RESET 27

define SPI_CS 15

define SPI_DC 12

define SPI_SCL 14

define SPI_SDA 13

So perhaps:

define SPI_RESET 27

define SPI_CS 15

define SPI_DC 2

define SPI_SCL 14

define SPI_SDA 13

On Fri, 4 Oct 2024 at 07:14, KTB001 @.***> wrote:

Hello enfieldcat,

thanks for your fast response.

Using V 2.0.1.7 resolved the problem. It compiles now.

Next issue is, that the display does not work. I use a 1,8" with the ST7735. It remains with a fully illuminated backlight, but does not display anything.

With a simple Hello World sketch on an Arduino Nano it works.

Pinning is

RST = 27

CS = 15

DC = 2 (I have also tried 12)

SCL = 14

SDA/MOSI = 13

Do you have a tip for me?

Thanks in advance.

BR

Gesendet: Donnerstag, 03. Oktober 2024 um 08:27 Uhr Von: "enfieldcat" @.> An: "enfieldcat/ESP32_miniThrottle" @.> Cc: "KTB001" @.>, "Comment" @.> Betreff: Re: [enfieldcat/ESP32_miniThrottle] Compile error no such file or directory (Issue #5)

It looks like you may be using a later major revision (3) of the ESP board manager - down grade to version 2 and try again.

See: miniThrottle Troubleshooting (camelthorn.cloud) https://camelthorn.cloud/miniThrottle/miniTroubleshooting.php - while it addresses just one of the errors you have seen. This should fix the others for you too.

Check that you are not using verson 3 of the ESP32 board manager. If you are, downgrade to version 2. In your IDE go to the "Tools" drop down and find "boards manager". Now search for "ESP32", and in the "esp32 by Espressif" you will see a dropdown selection. This may have a number like "3.0.3", select the most recent version 2, eg "2.0.17" and install that. Don't upgrade your boards for esp32 while you want to compile miniThrottle.

On Thu, 3 Oct 2024 at 02:44, KTB001 @.***> wrote:

Hi, thanks for having created this and for having made the effort to publish it. Unfortunately, I get a lot of error messages, when I try to complile it.

In file included from c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/lcdgfx.h:30, from G:\Codico\MiniThrottle\ESP32_miniThrottle\static_defs.h:37, from G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:33:

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::copy(_CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits> std::basic_string_view<_CharT, _Traits>::substr(size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view: In member function 'constexpr int std::basic_string_view<_CharT, _Traits>::compare(std::basic_string_view<_CharT, _Traits>) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\string_view.tcc: In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::rfind(const _CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h: In member function 'constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, int> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _Tp&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc: In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn(char_type*, std::streamsize)':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type*, std::streamsize)':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_result<_Iter, _Out> std::ranges::__uninitialized_copy_fn::operator()(_Iter, _ISent, _Out, _OSent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_copy_n_result<_Iter, _Out> std::ranges::__uninitialized_copy_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_result<_Iter, _Out> std::ranges::__uninitialized_move_fn::operator()(_Iter, _ISent, _Out, _OSent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h: In member function 'std::ranges::uninitialized_move_n_result<_Iter, _Out> std::ranges::__uninitialized_move_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19: error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino: In function 'void setup()': G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:408:6: error: 'spi_flash_get_chip_size' was not declared in this scope 408 | spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino: In function 'void mdnsLookup(const char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino:493:71: error: 'mdns_result_t' {aka 'struct mdns_result_s'} has no member named 'tcpip_if' 493 | Serial.printf("%d: Interface: %s, Type: %s\r\n", i++, if_str[r->tcpip_if], ip_protocol_str[r->ip_protocol]); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'float runAutomation::getvar(char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:363:65: error: 'spi_flash_get_chip_size' was not declared in this scope 363 | else if (strcmp (varcopy, "flashsize") == 0) retval = (spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'void runAutomation::autoInitPin(uint8_t, uint8_t, uint16_t)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:967:11: error: 'adcAttachPin' was not declared in this scope 967 | adcAttachPin(pinNr); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:984:13: error: 'ledcSetup' was not declared in this scope 984 | ledcSetup(ledChannel, 5000, 8); | ^~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:985:13: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 985 | ledcAttachPin(pinNr, ledChannel); | ^~~~~ | ledcAttach G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino: In function 'void mt_set_server(int, char*)': G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino:1506:38: error: no matching function for call to 'nvs_get_string(char [15], char [65], , unsigned int)' 1506 | if (index==0) nvs_get_string (paramName, host, HOST, sizeof(host)); | ~~~^~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate: 'void nvs_get_string(const char, char, const char, int)' 45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70: note: no known conversion for argument 3 from '' to 'const char' 45 void nvs_get_string (const char strName, char strDest, const char strDefault, int strSize) ~~^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate: 'void nvs_get_string(const char, char, int)' 59 void nvs_get_string (const char strName, char strDest, int strSize) ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate expects 3 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate: 'void nvs_get_string(const char, const char, char, const char, int)' 193

void nvs_get_string (const char* nameSpace, const char

*strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate expects 5 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function 'void mkWebConfig(WiFiClient, bool)': G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1039:30: error: no matching function for call to 'nvs_get_string(char [16], char [64], , unsigned int)' 1039 | if (n==0) nvs_get_string (labelName, labelDesc, HOST, sizeof(labelDesc)); |


G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate:
'void nvs_get_string(const char, char*, const char*, int)'
45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) |
^~~~~~~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70:
note: no known conversion for argument 3 from '' to 'const char' 45 |
void
nvs_get_string (const char strName, char strDest, const char strDefault,
int strSize) | ~~~~~~~~~~~~^~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate:
'void nvs_get_string(const char, char, int)' 59 | void nvs_get_string
(const char strName, char strDest, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate
expects 3 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate:
'void nvs_get_string(const char, const char, char, const char, int)' 193
|
void nvs_get_string (const char* nameSpace, const char *strName, char
*strDest, const char

*strDefault, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate
expects 5 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function
'void
mkWebDeviceDescript(WiFiClient*)':
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1748:6: error:
'spi_flash_get_chip_size' was not declared in this scope
1748 | spi_flash_get_chip_size() / (1024 * 1024));
| ^~~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: 'spi_flash_get_chip_size' was not declared in this
scope

I would very much appreciate help to resolve the problem.

BR

—
Reply to this email directly, view it on GitHub
<
https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2388681437
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AIXKLEAUFM3JEJU6RSGMPW3ZZP2CBAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGY4DCNBTG4

.
You are receiving this because you commented.Message ID:
***@***.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>

— Reply to this email directly, view it on GitHub https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2392032618, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXKLEFPNG6WMNJOBUKYHILZZWCRHAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJSGAZTENRRHA . You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

enfieldcat commented 6 days ago

Yes you'd have a good chance of it working on this board.

One of the design objectives was not to hard code changeable settings in the firmware. As a result the Wifi SSID and password are stored after compiling via the serial or web interface and you can store up to 6 of these - this allows you to move between layouts / clubs / networks. You should not have to disable your DCC Ex password. When it first powers up the miniThrottle will serve up it's own WiFi Access Point (AP) which you can use for initial configuration, and you are free to use the web interface to disable that later.

On Fri, 4 Oct 2024 at 20:29, KTB001 @.***> wrote:

I also have the encoder working now. Nice :-).

Do you think, that it could also work on a LoLin ESP32 Lite board?

If you don't see any opstacles I will buy one and give it a try.

I was wondering, that the miniThrottle.h does not contain a WiFi password?

Do I have to disable the PW in the DCC EX Command Station?

Gesendet: Freitag, 04. Oktober 2024 um 07:22 Uhr Von: "enfieldcat" @.> An: "enfieldcat/ESP32_miniThrottle" @.> Cc: "KTB001" @.>, "Comment" @.> Betreff: Re: [enfieldcat/ESP32_miniThrottle] Compile error no such file or directory (Issue #5)

On your miniThrottle.h

Look for "DISPLAY SELECTION" Verify you #define only one display - #define ST7735 The other display types are commented out

Look for the section "#ifdef ST7735" and adjust the pin assignments. When I tested the device my pin maps would have been:

define SPI_RESET 27

define SPI_CS 15

define SPI_DC 12

define SPI_SCL 14

define SPI_SDA 13

So perhaps:

define SPI_RESET 27

define SPI_CS 15

define SPI_DC 2

define SPI_SCL 14

define SPI_SDA 13

On Fri, 4 Oct 2024 at 07:14, KTB001 @.***> wrote:

Hello enfieldcat,

thanks for your fast response.

Using V 2.0.1.7 resolved the problem. It compiles now.

Next issue is, that the display does not work. I use a 1,8" with the ST7735. It remains with a fully illuminated backlight, but does not display anything.

With a simple Hello World sketch on an Arduino Nano it works.

Pinning is

RST = 27

CS = 15

DC = 2 (I have also tried 12)

SCL = 14

SDA/MOSI = 13

Do you have a tip for me?

Thanks in advance.

BR

Gesendet: Donnerstag, 03. Oktober 2024 um 08:27 Uhr Von: "enfieldcat" @.> An: "enfieldcat/ESP32_miniThrottle" @.> Cc: "KTB001" @.>, "Comment" @.> Betreff: Re: [enfieldcat/ESP32_miniThrottle] Compile error no such file or directory (Issue #5)

It looks like you may be using a later major revision (3) of the ESP board manager - down grade to version 2 and try again.

See: miniThrottle Troubleshooting (camelthorn.cloud) https://camelthorn.cloud/miniThrottle/miniTroubleshooting.php - while it addresses just one of the errors you have seen. This should fix the others for you too.

Check that you are not using verson 3 of the ESP32 board manager. If you are, downgrade to version 2. In your IDE go to the "Tools" drop down and find "boards manager". Now search for "ESP32", and in the "esp32 by Espressif" you will see a dropdown selection. This may have a number like "3.0.3", select the most recent version 2, eg "2.0.17" and install that. Don't upgrade your boards for esp32 while you want to compile miniThrottle.

On Thu, 3 Oct 2024 at 02:44, KTB001 @.***> wrote:

Hi, thanks for having created this and for having made the effort to publish it. Unfortunately, I get a lot of error messages, when I try to complile it.

In file included from c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/lcdgfx.h:30, from G:\Codico\MiniThrottle\ESP32_miniThrottle\static_defs.h:37, from G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:33:

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view:

In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::copy(_CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view:

In member function 'constexpr std::basic_string_view<_CharT, _Traits> std::basic_string_view<_CharT, _Traits>::substr(size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view:

In member function 'constexpr int std::basic_string_view<_CharT, _Traits>::compare(std::basic_string_view<_CharT, _Traits>) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\string_view.tcc:

In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::rfind(const _CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h:

In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h:

In member function 'constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, int> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _Tp&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc:

In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn(char_type*, std::streamsize)':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc:

In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type*, std::streamsize)':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h:

In member function 'std::ranges::uninitialized_copy_result<_Iter, _Out> std::ranges::__uninitialized_copy_fn::operator()(_Iter, _ISent, _Out, _OSent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h:

In member function 'std::ranges::uninitialized_copy_n_result<_Iter, _Out> std::ranges::__uninitialized_copy_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h:

In member function 'std::ranges::uninitialized_move_result<_Iter, _Out> std::ranges::__uninitialized_move_fn::operator()(_Iter, _ISent, _Out, _OSent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h:

In member function 'std::ranges::uninitialized_move_n_result<_Iter, _Out> std::ranges::__uninitialized_move_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino: In function 'void setup()': G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:408:6: error: 'spi_flash_get_chip_size' was not declared in this scope 408 | spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino: In function 'void mdnsLookup(const char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino:493:71: error: 'mdns_result_t' {aka 'struct mdns_result_s'} has no member named 'tcpip_if' 493 | Serial.printf("%d: Interface: %s, Type: %s\r\n", i++, if_str[r->tcpip_if], ip_protocol_str[r->ip_protocol]); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'float runAutomation::getvar(char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:363:65: error: 'spi_flash_get_chip_size' was not declared in this scope 363 | else if (strcmp (varcopy, "flashsize") == 0) retval = (spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'void runAutomation::autoInitPin(uint8_t, uint8_t, uint16_t)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:967:11: error: 'adcAttachPin' was not declared in this scope 967 | adcAttachPin(pinNr); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:984:13: error: 'ledcSetup' was not declared in this scope 984 | ledcSetup(ledChannel, 5000, 8); | ^~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:985:13: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 985 | ledcAttachPin(pinNr, ledChannel); | ^~~~~ | ledcAttach G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino: In function 'void mt_set_server(int, char*)': G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino:1506:38: error: no matching function for call to 'nvs_get_string(char [15], char [65], , unsigned int)' 1506 | if (index==0) nvs_get_string (paramName, host, HOST, sizeof(host)); | ~~~^~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate: 'void nvs_get_string(const char, char, const char, int)' 45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70: note: no known conversion for argument 3 from '' to 'const char' 45 void nvs_get_string (const char strName, char strDest, const char strDefault, int strSize) ~~^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate: 'void nvs_get_string(const char, char, int)' 59 void nvs_get_string (const char strName, char strDest, int strSize) ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate expects 3 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate: 'void nvs_get_string(const char, const char, char, const char, int)' 193

void nvs_get_string (const char* nameSpace, const char

*strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate expects 5 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function 'void mkWebConfig(WiFiClient, bool)': G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1039:30: error: no matching function for call to 'nvs_get_string(char [16], char [64], , unsigned int)' 1039 | if (n==0) nvs_get_string (labelName, labelDesc, HOST, sizeof(labelDesc)); |


G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note:
candidate:
'void nvs_get_string(const char, char*, const char*, int)'
45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) |
^~~~~~~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70:
note: no known conversion for argument 3 from '' to 'const char' 45 |
void
nvs_get_string (const char strName, char strDest, const char
strDefault,
int strSize) | ~~~~~~~~~~~~^~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note:
candidate:
'void nvs_get_string(const char, char, int)' 59 | void nvs_get_string
(const char strName, char strDest, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate
expects 3 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note:
candidate:
'void nvs_get_string(const char, const char, char, const char, int)'
193
|
void nvs_get_string (const char* nameSpace, const char *strName, char
*strDest, const char

*strDefault, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note:
candidate
expects 5 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function
'void
mkWebDeviceDescript(WiFiClient*)':
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1748:6: error:
'spi_flash_get_chip_size' was not declared in this scope
1748 | spi_flash_get_chip_size() / (1024 * 1024));
| ^~~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: 'spi_flash_get_chip_size' was not declared in this
scope

I would very much appreciate help to resolve the problem.

BR

—
Reply to this email directly, view it on GitHub
<

https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2388681437

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AIXKLEAUFM3JEJU6RSGMPW3ZZP2CBAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGY4DCNBTG4

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2392032618 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AIXKLEFPNG6WMNJOBUKYHILZZWCRHAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJSGAZTENRRHA

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2393016646, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXKLEDG7YXOEPCGGXRY65LZZY7UZAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJTGAYTMNRUGY . You are receiving this because you commented.Message ID: @.***>

KTB001 commented 6 days ago

Wonderful, thank you.

 

I will try the LoLin ESP32 board then and give you feedback about it. 

 

It might take 2-3 weeks though. I need to order it and then find time again to try it out. 

 

Thanks for your quick support. 

 

BR

   

Gesendet: Freitag, 04. Oktober 2024 um 10:54 Uhr Von: "enfieldcat" @.> An: "enfieldcat/ESP32_miniThrottle" @.> Cc: "KTB001" @.>, "Comment" @.> Betreff: Re: [enfieldcat/ESP32_miniThrottle] Compile error no such file or directory (Issue #5)

  Yes you'd have a good chance of it working on this board.

One of the design objectives was not to hard code changeable settings in the firmware. As a result the Wifi SSID and password are stored after compiling via the serial or web interface and you can store up to 6 of these - this allows you to move between layouts / clubs / networks. You should not have to disable your DCC Ex password. When it first powers up the miniThrottle will serve up it's own WiFi Access Point (AP) which you can use for initial configuration, and you are free to use the web interface to disable that later.

On Fri, 4 Oct 2024 at 20:29, KTB001 @.***> wrote:

I also have the encoder working now. Nice :-).

Do you think, that it could also work on a LoLin ESP32 Lite board?

If you don't see any opstacles I will buy one and give it a try.

I was wondering, that the miniThrottle.h does not contain a WiFi password?

Do I have to disable the PW in the DCC EX Command Station?

Gesendet: Freitag, 04. Oktober 2024 um 07:22 Uhr Von: "enfieldcat" @.> An: "enfieldcat/ESP32_miniThrottle" @.> Cc: "KTB001" @.>, "Comment" @.> Betreff: Re: [enfieldcat/ESP32_miniThrottle] Compile error no such file or directory (Issue #5)

On your miniThrottle.h

Look for "DISPLAY SELECTION" Verify you #define only one display - #define ST7735 The other display types are commented out

Look for the section "#ifdef ST7735" and adjust the pin assignments. When I tested the device my pin maps would have been:

define SPI_RESET 27

define SPI_CS 15

define SPI_DC 12

define SPI_SCL 14

define SPI_SDA 13

So perhaps:

define SPI_RESET 27

define SPI_CS 15

define SPI_DC 2

define SPI_SCL 14

define SPI_SDA 13

On Fri, 4 Oct 2024 at 07:14, KTB001 @.***> wrote:

Hello enfieldcat,

thanks for your fast response.

Using V 2.0.1.7 resolved the problem. It compiles now.

Next issue is, that the display does not work. I use a 1,8" with the ST7735. It remains with a fully illuminated backlight, but does not display anything.

With a simple Hello World sketch on an Arduino Nano it works.

Pinning is

RST = 27

CS = 15

DC = 2 (I have also tried 12)

SCL = 14

SDA/MOSI = 13

Do you have a tip for me?

Thanks in advance.

BR

Gesendet: Donnerstag, 03. Oktober 2024 um 08:27 Uhr Von: "enfieldcat" @.> An: "enfieldcat/ESP32_miniThrottle" @.> Cc: "KTB001" @.>, "Comment" @.> Betreff: Re: [enfieldcat/ESP32_miniThrottle] Compile error no such file or directory (Issue #5)

It looks like you may be using a later major revision (3) of the ESP board manager - down grade to version 2 and try again.

See: miniThrottle Troubleshooting (camelthorn.cloud) https://camelthorn.cloud/miniThrottle/miniTroubleshooting.php - while it addresses just one of the errors you have seen. This should fix the others for you too.

Check that you are not using verson 3 of the ESP32 board manager. If you are, downgrade to version 2. In your IDE go to the "Tools" drop down and find "boards manager". Now search for "ESP32", and in the "esp32 by Espressif" you will see a dropdown selection. This may have a number like "3.0.3", select the most recent version 2, eg "2.0.17" and install that. Don't upgrade your boards for esp32 while you want to compile miniThrottle.

On Thu, 3 Oct 2024 at 02:44, KTB001 @.***> wrote:

Hi, thanks for having created this and for having made the effort to publish it. Unfortunately, I get a lot of error messages, when I try to complile it.

In file included from c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/lcdgfx.h:30, from G:\Codico\MiniThrottle\ESP32_miniThrottle\static_defs.h:37, from G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:33:

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view:

In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::copy(_CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view:

In member function 'constexpr std::basic_string_view<_CharT, _Traits> std::basic_string_view<_CharT, _Traits>::substr(size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\string_view:

In member function 'constexpr int std::basic_string_view<_CharT, _Traits>::compare(std::basic_string_view<_CharT, _Traits>) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\string_view.tcc:

In member function 'constexpr std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::rfind(const _CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h:

In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.h:

In member function 'constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, int> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _Tp&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT*, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr int std::cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const std::cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\basic_string.tcc:

In member function 'constexpr int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(size_type, size_type, const _CharT*, size_type) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc:

In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn(char_type*, std::streamsize)':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\streambuf.tcc:

In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type*, std::streamsize)':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h:

In member function 'std::ranges::uninitialized_copy_result<_Iter, _Out> std::ranges::__uninitialized_copy_fn::operator()(_Iter, _ISent, _Out, _OSent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h:

In member function 'std::ranges::uninitialized_copy_n_result<_Iter, _Out> std::ranges::__uninitialized_copy_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h:

In member function 'std::ranges::uninitialized_move_result<_Iter, _Out> std::ranges::__uninitialized_move_fn::operator()(_Iter, _ISent, _Out, _OSent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^

c:\users\klb\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\bits\ranges_uninitialized.h:

In member function 'std::ranges::uninitialized_move_n_result<_Iter, _Out> std::ranges::__uninitialized_move_n_fn::operator()(_Iter, std::iter_difference_t<_Iter>, _Out, _Sent) const':

c:\Users\klb\Documents\Arduino\libraries\lcdgfx\src/nano_gfx_types.h:36:19:

error: expected unqualified-id before '(' token 36 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ^ G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino: In function 'void setup()': G:\Codico\MiniThrottle\ESP32_miniThrottle\ESP32_miniThrottle.ino:408:6: error: 'spi_flash_get_chip_size' was not declared in this scope 408 | spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino: In function 'void mdnsLookup(const char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\connectMgr.ino:493:71: error: 'mdns_result_t' {aka 'struct mdns_result_s'} has no member named 'tcpip_if' 493 | Serial.printf("%d: Interface: %s, Type: %s\r\n", i++, if_str[r->tcpip_if], ip_protocol_str[r->ip_protocol]); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'float runAutomation::getvar(char)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:363:65: error: 'spi_flash_get_chip_size' was not declared in this scope 363 | else if (strcmp (varcopy, "flashsize") == 0) retval = (spi_flash_get_chip_size() / (1024 1024)); | ^~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino: In member function 'void runAutomation::autoInitPin(uint8_t, uint8_t, uint16_t)': G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:967:11: error: 'adcAttachPin' was not declared in this scope 967 | adcAttachPin(pinNr); | ^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:984:13: error: 'ledcSetup' was not declared in this scope 984 | ledcSetup(ledChannel, 5000, 8); | ^~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\runAuto.ino:985:13: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 985 | ledcAttachPin(pinNr, ledChannel); | ^~~~~ | ledcAttach G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino: In function 'void mt_set_server(int, char*)': G:\Codico\MiniThrottle\ESP32_miniThrottle\serialTerm.ino:1506:38: error: no matching function for call to 'nvs_get_string(char [15], char [65], , unsigned int)' 1506 | if (index==0) nvs_get_string (paramName, host, HOST, sizeof(host)); | ~~~^~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note: candidate: 'void nvs_get_string(const char, char, const char, int)' 45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70: note: no known conversion for argument 3 from '' to 'const char' 45 void nvs_get_string (const char strName, char strDest, const char strDefault, int strSize) ~~^~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate: 'void nvs_get_string(const char, char, int)' 59 void nvs_get_string (const char strName, char strDest, int strSize) ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate expects 3 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate: 'void nvs_get_string(const char, const char, char, const char, int)' 193

void nvs_get_string (const char* nameSpace, const char

*strName, char strDest, const char strDefault, int strSize) | ^~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note: candidate expects 5 arguments, 4 provided G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function 'void mkWebConfig(WiFiClient, bool)': G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1039:30: error: no matching function for call to 'nvs_get_string(char [16], char [64], , unsigned int)' 1039 | if (n==0) nvs_get_string (labelName, labelDesc, HOST, sizeof(labelDesc)); |


G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:6: note:
candidate:
'void nvs_get_string(const char, char*, const char*, int)'
45 | void nvs_get_string (const char

*strName, char strDest, const char strDefault, int strSize) |
^~~~~~~~~~~~~~ G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:45:70:
note: no known conversion for argument 3 from '' to 'const char' 45 |
void
nvs_get_string (const char strName, char strDest, const char
strDefault,
int strSize) | ~~~~~~~~~~~~^~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note:
candidate:
'void nvs_get_string(const char, char, int)' 59 | void nvs_get_string
(const char strName, char strDest, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:59:6: note: candidate
expects 3 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note:
candidate:
'void nvs_get_string(const char, const char, char, const char, int)'
193
|
void nvs_get_string (const char* nameSpace, const char *strName, char
*strDest, const char

*strDefault, int strSize) | ^~~~~~~~~~~~~~
G:\Codico\MiniThrottle\ESP32_miniThrottle\nvs.ino:193:6: note:
candidate
expects 5 arguments, 4 provided
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino: In function
'void
mkWebDeviceDescript(WiFiClient*)':
G:\Codico\MiniThrottle\ESP32_miniThrottle\webserver.ino:1748:6: error:
'spi_flash_get_chip_size' was not declared in this scope
1748 | spi_flash_get_chip_size() / (1024 * 1024));
| ^~~~~~~~~~~~~~~~~~~~~~~

exit status 1

Compilation error: 'spi_flash_get_chip_size' was not declared in this
scope

I would very much appreciate help to resolve the problem.

BR

—
Reply to this email directly, view it on GitHub
<

https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2388681437

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AIXKLEAUFM3JEJU6RSGMPW3ZZP2CBAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGY4DCNBTG4

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2392032618 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AIXKLEFPNG6WMNJOBUKYHILZZWCRHAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJSGAZTENRRHA

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/enfieldcat/ESP32_miniThrottle/issues/5#issuecomment-2393016646, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXKLEDG7YXOEPCGGXRY65LZZY7UZAVCNFSM6AAAAABPHWZICKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJTGAYTMNRUGY . You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>