Skip to content

Commit

Permalink
Fixed error when compiling example sketch of adafruit OLED display
Browse files Browse the repository at this point in the history
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: adafruit#88

Simply adding two lines solves the problem.
  • Loading branch information
theintel committed Oct 17, 2018
1 parent 5b672ff commit 4a2757c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fontconvert/fontconvert.c
Expand Up @@ -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>
Expand Down Expand Up @@ -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 */

0 comments on commit 4a2757c

Please sign in to comment.