Goodmorning everyone,
I have an esp32 wemos with the formfactory of an arduino uno so that I can directly install the lcd with the original feet and the hardware modification recommended by Bodmer, with various difficulties I managed to get everything I need to work, both lcd and touch and Adafruit_GFX_Button library , unfortunately, however, I need to have more "pages / screens" with different buttons, so I used, as recommended, arrays of objects containing the buttons for each screen, the problem is that when I go to load the software with these declared arrays and / or called by the functions that verify the pressure of the key, the esp32 goes crazy going into a restart loop, in practice part, white screen and restarts. If I comment on the offending functions everything returns to work, from my tests it seems that the problem is given by the * of Adafruit_GFX_Button necessary to recall the array that interests me ... for example if I declare the array:
Adafruit_GFX_Button *interfaccia0[] = { &btn1, &btn2, &btn3, NULL };
esp32 goes crazy and reboots all the time, if I declare it as:
Adafruit_GFX_Button* interfaccia0[] = { &btn1, &btn2, &btn3, NULL };
starts quietly ...
instead with the function:
bool update_button_list(Adafruit_GFX_Button* (&pb)){
i can't get anything to work, esp32 reboots all the time ...
tips? @david_prentice ?