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:
Muhammad Arifur Rahman 2018-10-18 01:28:59 +06:00 committed by GitHub
parent 5b672ff1c6
commit 4a2757c893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */