mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
Fixed error when compiling example sketch of adafruit OLED display
When compiling the example sketch for adafruit OLED display, the sketch refers to Adafruit_GFX and consequently to fontconvert.c This file includes a header file named ft2build.h, which many of the compilers fail to find, resulting in compilation error. Check the discussion on this issue: https://github.com/adafruit/Adafruit-GFX-Library/issues/88 Simply adding two lines solves the problem.
This commit is contained in:
parent
5b672ff1c6
commit
4a2757c893
@ -16,6 +16,7 @@ Keep 7-bit fonts around as an option in that case, more compact.
|
||||
|
||||
See notes at end for glyph nomenclature & other tidbits.
|
||||
*/
|
||||
#ifndef ARDUINO
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
@ -282,3 +283,5 @@ the cursor on the X axis after drawing the corresponding symbol.
|
||||
There's also some changes with regard to 'background' color and new GFX
|
||||
fonts (classic fonts unchanged). See Adafruit_GFX.cpp for explanation.
|
||||
*/
|
||||
|
||||
#endif /* !ARDUINO */
|
||||
|
Loading…
Reference in New Issue
Block a user