Adafruit_GFX.h

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can I include  #include <Adafruit_GFX.h>  in a project that is not a adafruit project?

 

Slán

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes.   

 

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.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you plan to use their software, it would make sense to also purchase their hardware to help support them!!!

 

 

Jim

 

 

Keys to wealth:

Invest for cash flow, not capital gains!

Wealth is attracted, not chased! 

Income is proportional to how many you serve!

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Guys...