SSD1306 OLED display driver 1.7.8 This library is developed to control SSD1306/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays

ssd1306_fonts.h
Go to the documentation of this file.
1 /*
2 MIT License
3
4 Copyright (c) 2018, Alexey Dynda
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in all
14 copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 SOFTWARE.
23 */
28 #ifndef SSD1306_FONTS_H
29 #define SSD1306_FONTS_H
30
31 #include "ssd1306_hal/io.h"
32 #include "nano_gfx_types.h"
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
44 #define SSD1306_MORE_CHARS_REQUIRED 0xffff
45
47 extern const PROGMEM uint8_t ssd1306xled_font6x8 [];
48
50 extern const PROGMEM uint8_t ssd1306xled_font6x8_German [];
51
53 extern const PROGMEM uint8_t ssd1306xled_font6x8_AB [];
54
56 extern const PROGMEM uint8_t ssd1306xled_font5x7 [];
57
59 extern const PROGMEM uint8_t ssd1306xled_font5x7_AB [];
60
62 extern const PROGMEM uint8_t digital_font5x7_123[];
63
65 extern const PROGMEM uint8_t digital_font5x7_AB[];
66
68 extern const PROGMEM uint8_t digital_font5x7[];
69
71 extern const PROGMEM uint8_t free_calibri11x12[];
72
74 extern const PROGMEM uint8_t free_calibri11x12_cyrillic[];
75
77 extern const PROGMEM uint8_t free_calibri11x12_latin[];
78
79
84 extern const PROGMEM uint8_t courier_new_font11x16_digits [];
85
90 extern const PROGMEM uint8_t comic_sans_font24x32_123 [];
91
99 void ssd1306_setCursor(lcdint_t x, lcdint_t y);
100
107 void ssd1306_setFixedFont(const uint8_t * progmemFont);
108
116 void ssd1306_setFreeFont(const uint8_t * progmemFont);
117
125 void ssd1306_setSecondaryFont(const uint8_t * progmemUnicode);
126
138 void ssd1306_setFont6x8(const uint8_t * progmemFont) __attribute__ ((deprecated));
139
153 void ssd1306_getCharBitmap(uint16_t ch, SCharInfo *info);
154
159 void ssd1306_enableUtf8Mode(void);
160
164 void ssd1306_enableAsciiMode(void);
165
166 #ifndef DOXYGEN_SHOULD_SKIP_THIS
167
173 void ssd1306_setSquixFont(const uint8_t * progmemFont);
174
182 uint16_t ssd1306_unicode16FromUtf8(uint8_t ch);
183 #endif
184
189 #ifdef __cplusplus
190 }
191 #endif
192
193 #endif // SSD1306_FONTS_H
ssd1306_setCursor
void ssd1306_setCursor(lcdint_t x, lcdint_t y)
Sets cursor position for text mode print functions.
Definition: ssd1306_generic.c:68
digital_font5x7_123
const PROGMEM uint8_t digital_font5x7_123[]
ssd1306xled_font6x8_German
const PROGMEM uint8_t ssd1306xled_font6x8_German[]
Definition: ssd1306_fonts.c:144
SCharInfo
Definition: nano_gfx_types.h:107
courier_new_font11x16_digits
const PROGMEM uint8_t courier_new_font11x16_digits[]
Definition: ssd1306_fonts.c:595
ssd1306_enableAsciiMode
void ssd1306_enableAsciiMode(void)
Definition: ssd1306_generic.c:127
ssd1306_getCharBitmap
void ssd1306_getCharBitmap(uint16_t ch, SCharInfo *info)
returns char data for currently set (active) font.
Definition: ssd1306_generic.c:93
io.h
ssd1306xled_font6x8
const PROGMEM uint8_t ssd1306xled_font6x8[]
Definition: ssd1306_fonts.c:41
ssd1306xled_font5x7
const PROGMEM uint8_t ssd1306xled_font5x7[]
Definition: ssd1306_fonts.c:420
ssd1306_setFixedFont
void ssd1306_setFixedFont(const uint8_t *progmemFont)
Definition: ssd1306_generic.c:218
ssd1306xled_font5x7_AB
const PROGMEM uint8_t ssd1306xled_font5x7_AB[]
Definition: ssd1306_fonts.c:522
ssd1306_setFreeFont
void ssd1306_setFreeFont(const uint8_t *progmemFont)
Definition: ssd1306_generic.c:290
free_calibri11x12_latin
const PROGMEM uint8_t free_calibri11x12_latin[]
Definition: ssd1306_fonts.c:1051
nano_gfx_types.h
free_calibri11x12_cyrillic
const PROGMEM uint8_t free_calibri11x12_cyrillic[]
Definition: ssd1306_fonts.c:899
ssd1306_enableUtf8Mode
void ssd1306_enableUtf8Mode(void)
Definition: ssd1306_generic.c:120
comic_sans_font24x32_123
const PROGMEM uint8_t comic_sans_font24x32_123[]
Definition: ssd1306_fonts.c:634
ssd1306_setSecondaryFont
void ssd1306_setSecondaryFont(const uint8_t *progmemUnicode)
Definition: ssd1306_generic.c:82
ssd1306xled_font6x8_AB
const PROGMEM uint8_t ssd1306xled_font6x8_AB[]
Definition: ssd1306_fonts.c:163
ssd1306_setFont6x8
void ssd1306_setFont6x8(const uint8_t *progmemFont) __attribute__((deprecated))
Definition: ssd1306_1bit.c:880
free_calibri11x12
const PROGMEM uint8_t free_calibri11x12[]
Definition: ssd1306_fonts.c:684
digital_font5x7_AB
const PROGMEM uint8_t digital_font5x7_AB[]
Definition: ssd1306_fonts.c:350
digital_font5x7
const PROGMEM uint8_t digital_font5x7[]
Definition: ssd1306_fonts.c:249