Skip to content

Commit 4a2757c

Browse files
authored
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: #88 Simply adding two lines solves the problem.
1 parent 5b672ff commit 4a2757c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fontconvert/fontconvert.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Keep 7-bit fonts around as an option in that case, more compact.
1616
1717
See notes at end for glyph nomenclature & other tidbits.
1818
*/
19+
#ifndef ARDUINO
1920

2021
#include <stdio.h>
2122
#include <ctype.h>
@@ -282,3 +283,5 @@ the cursor on the X axis after drawing the corresponding symbol.
282283
There's also some changes with regard to 'background' color and new GFX
283284
fonts (classic fonts unchanged). See Adafruit_GFX.cpp for explanation.
284285
*/
286+
287+
#endif /* !ARDUINO */

0 commit comments

Comments
 (0)