Closed asukiaaa closed 3 years ago
Hi, asukiaaa m5stack tft is based on bobmer's tft library -> https://github.com/Bodmer/TFT_eSPI This is easier to port to other lcd Hope this helps you
Thank you for replying. I know that library but M5Display has its own functions so I think is is useful if it is separated as a library.
hello @asukiaaa If you want, you can try this library.
https://github.com/lovyan03/LovyanGFX
Most of the functions of M5Display can be used without modification, and it works faster.
@lovyan03 Thank you for the information. I try it.
Thank you for sharing useful library. M5Display saves my time a lot.
I want to use the library for other lcd but it seems difficult. (
TFT_WIDTH
andTFT_HEIGHT
are embedded in code.) How about to separate M5Display as a independent library and make it one of dependent library of this lib? If it is separated, M5Core2 and M5StickC can depend on the library and we can redule amount of code.Arduino framework supports
depends
option from Arduino IDE 1.8.10 https://github.com/arduino/Arduino/pull/8600 https://arduino.github.io/arduino-cli/library-specification/My idea of definitions.
M5Display.h as independent library
library.properties of M5Stack
M5Stack.h