lovyan03 / LovyanGFX

SPI LCD graphics library for ESP32 (ESP-IDF/ArduinoESP32) / ESP8266 (ArduinoESP8266) / SAMD51(Seeed ArduinoSAMD51)
Other
1.02k stars 187 forks source link

For Situation where we are emulating a ARDUINO with portdunio on a LINUX Machine #529

Closed marelab closed 2 months ago

marelab commented 2 months ago

During the development of a GUI for the meshtastic project we faced a problem during build in a situation where we are emulating a ARDUINO on linux with portdunio lib, but want to use SDL2 for native X11 GUI. At the moment we can just be ARDUINO or SDL2. But with portduino we need to be a ARDUINO using the SDL2 includes. There for I have changed the decission tree what should be included if we are a Arduino but with Portdunio Lib it uses SDL2 when included. Another way would maybe just to change order of the elifs starting with SDL and not ARDUINO. Then even if you have ARDUINO defined SDL2 would be included as first leaving out the ARDUINO includes. This is a special constellation where LINUX emulates a ARDUINO device and wants to use X11 or FrameBuffer.

tobozo commented 2 months ago

hi, thanks for your contribution :+1:

a few points need to be addressed before discussing the changes in the code: