lexus2k / lcdgfx

Driver for LCD displays running on Arduino/Avr/ESP32/Linux (including Rasperry) platforms
MIT License
356 stars 51 forks source link

make it compile-able for esp8266 #105

Open Kouzeru opened 12 months ago

Kouzeru commented 12 months ago

Somehow the compiler wasn't happy with the non-existent inclusions that meant for esp32, while targetting esp8266. This PR will just fix that, it's already tested for compiling both esp32 and esp8266 in Arduino IDE 2.1.1

lexus2k commented 12 months ago

This change will not work for all ESP32 based platforms, because ESP32 define is not defined in all environments. Could you please check in your case which branch in https://github.com/lexus2k/lcdgfx/blob/e7ef92dac6a9afc63b659a13888a37583872356c/src/lcd_hal/esp/io.h works for you? This header should not define CONFIG_ESP32_I2C_AVAILABLE if you're using ESP8266. If this happens, could you please share the compiler command line with all flags passed