SSD1306 OLED display driver  1.7.12
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
void ssd1306_setCursor(lcdint_t x, lcdint_t y)
Sets cursor position for text mode print functions.
const PROGMEM uint8_t digital_font5x7_123[]
const PROGMEM uint8_t ssd1306xled_font6x8_German[]
const PROGMEM uint8_t courier_new_font11x16_digits[]
void ssd1306_enableAsciiMode(void)
void ssd1306_getCharBitmap(uint16_t ch, SCharInfo *info)
returns char data for currently set (active) font.
const PROGMEM uint8_t ssd1306xled_font6x8[]
Definition: ssd1306_fonts.c:41
const PROGMEM uint8_t ssd1306xled_font5x7[]
void ssd1306_setFixedFont(const uint8_t *progmemFont)
const PROGMEM uint8_t ssd1306xled_font5x7_AB[]
void ssd1306_setFreeFont(const uint8_t *progmemFont)
const PROGMEM uint8_t free_calibri11x12_latin[]
const PROGMEM uint8_t free_calibri11x12_cyrillic[]
void ssd1306_enableUtf8Mode(void)
const PROGMEM uint8_t comic_sans_font24x32_123[]
void ssd1306_setSecondaryFont(const uint8_t *progmemUnicode)
const PROGMEM uint8_t ssd1306xled_font6x8_AB[]
void ssd1306_setFont6x8(const uint8_t *progmemFont) __attribute__((deprecated))
Definition: ssd1306_1bit.c:880
const PROGMEM uint8_t free_calibri11x12[]
const PROGMEM uint8_t digital_font5x7_AB[]
const PROGMEM uint8_t digital_font5x7[]