Can I include #include <Adafruit_GFX.h> in a project that is not a adafruit project?
Note that Adafruit "encourage" you to install unrelated code. No problem for common targets like Uno, Mega2560, ...
Adafruit.cpp always compiles fine. But the "unrelated code" often fails to compile on less common targets.
If you plan to use their software, it would make sense to also purchase their hardware to help support them!!!
Keys to wealth:
Invest for cash flow, not capital gains!
Wealth is attracted, not chased!
Income is proportional to how many you serve!
If this is the ILI9341 project you mentioned in another thread, the adafruit libraries are a little 'bloated' and slow, due to their abstraction layer. I'd recommend the library I linked if performance becomes an issue. Nothing worse than a sluggish UI.
Yes, Adafruit's GFX library is all high-level routines for drawing circles, rectangles, squares, and text. You will need to supply a routine for drawing a single pixel onto the display at a specific location and specific color. You will also most likely have to provide a function that fills rectangles. This ability is often done using the hardware controller of the screen in order to make it run very fast.
© 2021 Microchip Technology Inc.