Open schwos opened 10 months ago
Within the ArduinoMenu I was successful in getting the MACRO that was develop to initialize to function and when the compiler executes this is the output:
I was successful in getting the MENU_OUTPUTS to generate the initialize:
Menu::idx_t outTops73[2];
panel _panels_outPanels73[] ={{0, 0, 128 / 6, 64 / 10}}; Menu::navNode _nodes_outPanels73[sizeof(_panels_outPanels73)/sizeof(panel)]; Menu::panelsList outPanels73(_panels_outPanels73,_nodes_outPanels73,sizeof(_panels_outPanels73)/sizeof(panel));; Menu::NanoEngine1Out out73(engine,colors,outTops73,outPanels73,6,10,0,3); Menu::menuOut out_outPtrs[] ={ &out73, }; Menu::outputsList out(out_outPtrs,sizeof(out_outPtrs)/sizeof(Menu::menuOut*));
Though at moment I have LCDGFX complaining..
stl_vector.h: In member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::_M_check_len(std::vector<_Tp, _Alloc>::size_type, const char*) const': .pio/libdeps/Display_ESP32/lcdgfx/src/nano_gfx_types.h:41:19: error: expected unqualified-id before '(' token
define max(a, b) ((a) > (b) ? (a) : (b))
Hello. Do you have any simple project to build with Arduino IDE giving this error? I can advise you to replace the name of macro (min, max) to lcd_gfx_min, lcd_gfx_max everywhere in lcdfgx library. If this helps, I will update the library
We have to add to macros the lcdgfx macro i'll provide that shortly. Show that it will generate the appropriate code upon compile.
Why are we changing the other macro just curious?
I'm at moment building out the sample code with ArduinoMenu integrated with LCDGFX so we can just use it outside of my other project. I should have this done late this afternoon.
I use Visual Code with PlatformIO that okay or you want in Arduino IDE? I'll have to reinstall Arduino IDE if so.
I was successful in getting the two to compile, it required modification to the ArduinoMenus macro.h file. After careful study I was able to find the items it required. Now compile is one thing getting it to produce the menu through the driver is another. I will work this a get a development sample uploaded shortly so either share the outcome or determine what i may be missing.More to come
I have started the attempted integration of LCDGFX with Nanoengine enabled for the ArduinoMenu Library. I have to initialize the menu and pass the display and nanoengine; NanoEngine1 engine(display);
I am attempting to figure out how I can pass the nanengine and display objects to ArduinoMenu without throwing a compiler error.
I have tried:
Suggestions would be appreciated..
Below is the draft lcdgfxOut.h library to be inserted into ArduinoMenu..