From 4a2757c8934461a6936cec47a9c05980031441d8 Mon Sep 17 00:00:00 2001 From: Muhammad Arifur Rahman Date: Thu, 18 Oct 2018 01:28:59 +0600 Subject: [PATCH] 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. --- fontconvert/fontconvert.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fontconvert/fontconvert.c b/fontconvert/fontconvert.c index bfd2110..01cc444 100644 --- a/fontconvert/fontconvert.c +++ b/fontconvert/fontconvert.c @@ -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 #include @@ -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 */