Skip to content

Commit 3fa4528

Browse files
committed
Exclude either by defining or by changing the default.
1 parent 0a9a233 commit 3fa4528

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/SFE_MicroOLED.cpp

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
6565
// Change the total fonts included
6666
#define TOTALFONTS 5
6767

68+
#ifndef INCLUDE_FONT0
69+
#define INCLUDE_FONT0 1
70+
#endif
71+
#ifndef INCLUDE_FONT1
72+
#define INCLUDE_FONT1 1
73+
#endif
74+
#ifndef INCLUDE_FONT2
75+
#define INCLUDE_FONT2 1
76+
#endif
77+
#ifndef INCLUDE_FONT3
78+
#define INCLUDE_FONT3 1
79+
#endif
80+
#ifndef INCLUDE_LARGE_LETTER_FONT
81+
#define INCLUDE_LARGE_LETTER_FONT 0
82+
#endif
83+
84+
6885
// Add the font name as declared in the header file. Remove as many
6986
// as possible to conserve FLASH memory.
7087
const unsigned char *MicroOLED::fontsPointer[] = {
@@ -88,7 +105,7 @@ const unsigned char *MicroOLED::fontsPointer[] = {
88105
#else
89106
0x0,
90107
#endif
91-
#ifdef INCLUDE_LARGE_LETTER_FONT
108+
#if INCLUDE_LARGE_LETTER_FONT
92109
fontlargeletter31x48
93110
#else
94111
0x0

0 commit comments

Comments
 (0)